SMF Support > SMF 2.0.x Support
Redirect index.php to root does not work
novill:
--- Quote from: James--- on May 06, 2012, 12:13:26 PM ---That's pity because the /index.php is a duplicate version of the root page of the forum.
Duplicate content.
--- End quote ---
I Think it's a SEO reason. :)
Arantor:
It is, for preventing duplicate content, apparently... not that you actually need to need to do it for SEO.
maestrosite.ru:
if you remove index.php from forum urls ($sourceurl without index.php) you forum will be have broken design. Because, themes (css, js) urls will be contains PHPSESSID param. For example:
--- Code: ---http://__forum__/?PHPSESSID=xxx&/Themes/defaul/css/index.css
--- End code ---
Arantor:
Yes, I know, this is the point I was trying to make ;)
James---:
I think some mod, probably an SEO mod has put a rel=canonical tag on the /index.php root forum page, so
that search engines will use the / page as the canonical one.
--- Quote ---if you remove index.php from forum urls ($sourceurl without index.php) you forum will be have broken design. Because, themes (css, js) urls will be contains PHPSESSID param. For example:
Code: [Selecteer]
http://__forum__/?PHPSESSID=xxx&/Themes/defaul/css/index.css
--- End quote ---
The idea was not to redirect all /index.php?topic= pages to the root, but only the root index.php page.
That's the one of a forums homepage which is also accessible through the normal / root page. For example:
forumname.com
vs
forumname.com/index.php
leads both to the same page. Duplicate content.
But because I have a canonical tag on the forumname.com/index.php to forumname.com page
it isn't a problem anymore.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version