301 Redirect results in 404 Not Found

#1
Hi

I am trying to redirect a lot of sub pages under www.mydomain.com/bespoke/myproducts/ to their parent.

So I have this rule:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^bespoke/myproducts/ https://www.mydomain.com/bespoke/myproducts/ [R=301,L]
The child pages are redirected, which is great, but the page they are redirected to is just showing a 404 Not Found.

How can I fix this please?

Thanks
Dave
 
Last edited by a moderator:
#3
Hi Jon

An example URL would be:
https://www.mydomain.com/bespoke/myproducts/vintage-product-name

And it should end up at:
https://www.mydomain.com/bespoke/myproducts/

Thanks
 
Last edited by a moderator:
#5
Hi Jon

Thanks for your help but the hosting company managed to fix the redirect:
Code:
RewriteEngine On
RewriteBase /
RewriteRule 301 /bespoke/myproducts/ https://www.mydomain.com/bespoke/myproducts/ [R=301,L]
 
Last edited by a moderator:
Top