cancel
Showing results for 
Search instead for 
Did you mean: 

Redirects from old adresses to new not working

Redirects from old adresses to new not working

H have recently moved platforms to magento from cubecart. Obviously the urls are different so I tried to create some redirects for the indexed links in google

I used cpanel to create them and I have posted them below.

Only wone of the rules works and this is the test one, the one that redirects bad.html to good.html in a test folder.

This one works fine, the rest of them do not work at all and following the link from google I end up being sent to my my custom 404 page.

I am using 1.9.2.2 and the htacces file is the standard magento one.

Hoping someone can help please...

 

RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
RewriteRule ^russian\-dolls\/fridge\-magnets\.html$ "http\:\/\/www\.mysite\.com\/russian\-dolls\/nesting\-dolls\.html" [R=301,L]

RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
RewriteRule ^test\/bad\.html$ "http\:\/\/www\.mysite\.com\/test\/good\.html" [R=301,L]

RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
RewriteRule ^jewellery\/pilgrim\/cat_501\.html\ $ "http\:\/\/www\.mysite\.com\/jewellery\/pilgrim\.html" [R=301,L]

RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
RewriteRule ^test\/sugar\.html$ "http\:\/\/www\.mysite\.com\/test\/good\.html" [R=301,L]