News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Search Engine Friendly URL's

Started by MrLeN, January 02, 2007, 09:46:33 AM

Previous topic - Next topic

taxiken

I found it! The "Search Engine Friendly URL's" feature now works on my server. I changed this line in Sources/QueryString.php

if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])
to
if (!empty($modSettings['queryless_urls']))

and eveything works perfectly again in SMF 1.1.1. Thank you!

青山 素子

Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Zeke

Quote from: taxiken on January 05, 2007, 02:44:48 PM
I found it! The "Search Engine Friendly URL's" feature now works on my server. I changed this line in Sources/QueryString.php

if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])
to
if (!empty($modSettings['queryless_urls']))

and eveything works perfectly again in SMF 1.1.1. Thank you!

FOR THE LOVE OF GOD THANK YOU!!!!!

I've been trying to get my board SEO / SEF for about 2 weeks now pouring over all the examples in this forum to no avail, but that change fixed it!

My configuration:

Hosted on SiteGround, SMF 1.1.1, PHP version     5.0.5, Apache version     1.3.37 (Unix), Server API    CGI, Mod_Rewrite installed, php.ini's allowed


I had tested mod_rewrite with hxxp:www.wallpaperama.com/forums/how-to-test-check-if-mod-rewrite-is-enabled-t40.html [nonactive].

I had tried adding custom php.ini redirect fix...

gaja

It seems like I am having the same problem, I have tried editing php.ini file and nothing changed for the url. Editing QueryString.php didn't help either.

Site is hosted on hxxp:godaddy.com [nonactive]
Here is some of my phpinfo:
System: Linux
Server API:  CGI/FastCGI

It is also because FastCGI that my seo friendly url function is not working?
If so, what should I ask the hosting company about the FastCGI then?

Thanks a lot for your help!


Quote from: Motoko-chan on January 03, 2007, 12:19:36 PM
I think it might be because it is running with FastCGI. Everything looks good, you'll have to check with your host on this one.

snowweb

Quote from: taxiken on January 05, 2007, 02:44:48 PM
I found it! The "Search Engine Friendly URL's" feature now works on my server. I changed this line in Sources/QueryString.php

if (!empty($modSettings['queryless_urls']) && (!$context['server']['is_cgi'] || @ini_get('cgi.fix_pathinfo') == 1) && $context['server']['is_apache'])
to
if (!empty($modSettings['queryless_urls']))

and eveything works perfectly again in SMF 1.1.1. Thank you!

Thanks buddy... fixed it for me too :)

Huttan

How does a SEF friendly site looks as?

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Huttan

Then I must have the bug.
I wonder if I fix this can something else get problem

Huttan

It dide't worked for me, i have SMF 1.1.4. My site shutdown and it's unreachable

Advertisement: