You are here:  » 301 url redirect

301 url redirect

Submitted by crounauer on Wed, 2020-01-22 18:41 in

Hi David,

I have changed the url of my products. I've done url redirects before but this time it's not behaving like I want it too.

I've put this code in the root .htaccess file

{code saved}

but i'ts redirecting to this page..

{code saved}

How do I get rid of the excess after ?


Submitted by support on Thu, 2020-01-23 09:15

Hi Simon,

I would give it a go using a RewriteRule in the /sub-directory/.htaccess with the redirects being the first rules immediately after the RewriteBase line and using:

RewriteRule ^product/Product-Name-Old.html$ product/Product-Name-New.html [L,R=301]

Hope this helps!


Submitted by crounauer on Thu, 2020-01-23 15:14

Thanks David. Your continued support is very much appreciated!