[2.0 RC3] remove index.php from the url

Started by Raffoz, May 02, 2010, 08:17:09 PM

Previous topic - Next topic

Raffoz

to remove index.php from the url i went to sources/querystring.php and i modified this code:
// Makes it easier to refer to things this way.
$scripturl = $boardurl . '/index.php';


doing:
// Makes it easier to refer to things this way.
$scripturl = $boardurl . '/';


the problem is that in the forum not all links will work...

anyone can help me? :)

i don't like that the spider google rec me with the /index.php :)

thanks...
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

CapadY

a script url is an url to a script. index.php is a script file.
When you remove index.php from the url you don't have a script url but a directory url, something completely different.
SMF programm is expecting a script and a directory is found. I think this will never work properly.
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Arantor

Oh, you could do it with rewrite-rules, however there is absolutely no problem with having index.php in the URL; Google is more than smart enough to distinguish index.php from index.php?topic=1.0

Advertisement: