I'd like to redirect the regular www.mysite.com/index.php permanently to www.mysite.com. The reason why to do this is, that e.g. the GoogleBot doesn't index both pages.
Does anybody knows, how to redirect it with a permanent 301?
Kind regards

Moderators: General Support Moderators, General Support Moderators
Thank for the info,The 301 permanent redirect helps the search engines figure this out. 301 redirects are applied at the host server level, not at the Joomla level. Therefore, you must log into your hosting control panel and look around for the redirect options. Be sure to use a 301 redirect and not a 302 redirect. Some control panels do not make this clear. So be careful. If you have questions, contact your hosting company for directions.
Both URL will be treated as different and can cause duplicate content issue, thus it is better to redirect 302.Knalltrauma wrote:Hello everyone
I'd like to redirect the regular www.mysite.com/index.php permanently to www.mysite.com. The reason why to do this is, that e.g. the GoogleBot doesn't index both pages.
Does anybody knows, how to redirect it with a permanent 301?
Kind regards
gabrieluk wrote:Hi,
I'm having the same issue:
"Redirect /index.php permanently?"
As this topic is a big issue,and this post has gone wild with variations(https,etc...)I would like a final confirmation of the best practise to have only one homepage:www.mysite.com indexed by Google.
In my case, SEF is on,and i have:
http://www.mysite.com
http://www.mysite.com/index.php
http://www.mysite.com/home.html
So the best would be:
### re-direct home.html to root / ###
RewriteCond %{THE_REQUEST} ^.*\/home\.html\ HTTP/
RewriteRule ^(.*)home\.html$ /$1 [R=301,L]
### re-direct index.php to root / ###
RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]