301 redirects
Posted: Sun Jan 02, 2011 8:24 am
I'm just about to upload my new OC store (1.4.9.2) over the top of my old OSC store.
I've written 100+ 301 redirects in my .htaccess file so I don't lose my search engine rankings, etc.
The only way I could get the redirects to work with SEO urls turned on was as follows:
redirect 301 /catalog/singapore.html /singapore?
Note the trailing ?. When redirected, the address shows up as:
http://www.mystore.com/singapore?
Instead of just: http://www.mystore.com/singapore (which is how it shows when I click on the Singapore links in my OC store).
Without the ? in the .htaccess file, it redirects to the wrong address:
http://www.mystore.com/singapore?_route_=catalog/singapore.html
Some redirects wouldn't work with the trailing ?:
redirect 301 /catalog/contact_us.php /index.php?route=information/contact
Which is fine, as they still work.
I know that this is something to do with RewriteEngine On, but it doesn't seem to matter if I put the redirects above or below this in the .htaccess file, the same thing still happens.
All I want to know is if redirecting with the trailing ? will affect search engines somehow (duplicate content?) or anything else?
I've written 100+ 301 redirects in my .htaccess file so I don't lose my search engine rankings, etc.
The only way I could get the redirects to work with SEO urls turned on was as follows:
redirect 301 /catalog/singapore.html /singapore?
Note the trailing ?. When redirected, the address shows up as:
http://www.mystore.com/singapore?
Instead of just: http://www.mystore.com/singapore (which is how it shows when I click on the Singapore links in my OC store).
Without the ? in the .htaccess file, it redirects to the wrong address:
http://www.mystore.com/singapore?_route_=catalog/singapore.html
Some redirects wouldn't work with the trailing ?:
redirect 301 /catalog/contact_us.php /index.php?route=information/contact
Which is fine, as they still work.
I know that this is something to do with RewriteEngine On, but it doesn't seem to matter if I put the redirects above or below this in the .htaccess file, the same thing still happens.
All I want to know is if redirecting with the trailing ? will affect search engines somehow (duplicate content?) or anything else?