Jump to content

Redirect /index.php


gleb

Recommended Posts

From a SEO point of view I want to redirect www.mysite.com/index.php to www.mysite.com/ . They both are the same pages with different urls and I think the search engines will see this as duplicate content.

I already did a redirect from mysite.com to www.mysite.com by changing the .htaccess file. How can I do the redirect of index.php without causing infinate loops.

Is this even a reason for concern or is it already handled by a canonical url tag inside prestashop.

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

This redirects only from mysite.com/index.php to mysite.com/.

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]

But if you can get tomer's module, it will be very useful for redirect all your duplicate URLs to the default Friendly URL and prevent any Search Engine duplication penalty.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...