SMF Support > SMF 2.0.x Support

Redirect index.php to root does not work

<< < (4/4)

Arantor:
No, the canonical tag is part of SMF, it's built in.

Considering that it's all implemented directly in the heart of SMF, I'd love to know how you've got it only to add that one-off tag (which is contrary to how SMF works, too)

maestrosite.ru:
1. if you want only remove index.php from main page canonical urls see http://www.simplemachines.org/community/index.php?topic=474562.msg3320921#msg3320921

2. if you use canonical tag then you don't need this redirect

3. fix for remove session variable from canonical urls see http://custom.simplemachines.org/mods/index.php?mod=3315

matritte:
So is the conclusion that this isn't possible? I edited sources-querystring.php to remove index.php and that does remove index.php from the url, but once I do that none of my forum category links work--the browser just reloads the home page instead of going to the forum category.

The reason I want to remove it is because website.com/index.php looks ugly. No other reason than I like clean urls and minimalism. If this is possible please let me know how to go about it.

MrPhil:
You're successfully removing index.php from the URL, but your server is not finding it? You would have to add the index.php back in .htaccess (not a 301 redirect). Have you looked at various SEO options? They may do an adequate job for you. Are you already using any SEO, which depends on .htaccess to rewrite the URL, and could be misunderstanding your further-altered URLs?

Navigation

[0] Message Index

[*] Previous page

Go to full version