I have an old site with link:
https://www.oldsite.com/our-range/
On the new site I'm building the URL has changed to:
https://www.oldsite.com/products/
I've added this to my HTACCESS, above the Couch generated HTACCESS:
ReDirectPermanent /our-range/ https://www.newsite.com/products/
When I navigate to:
https://www.newsite.com/our-range/
I am redirected to this URL which displays my custom error 404:
https://www.newsite.com/products.php/?fname=our-range
I note the following lower down in the HTACCESS
What am I doing wrong?
Thank you!
https://www.oldsite.com/our-range/
On the new site I'm building the URL has changed to:
https://www.oldsite.com/products/
I've added this to my HTACCESS, above the Couch generated HTACCESS:
ReDirectPermanent /our-range/ https://www.newsite.com/products/
When I navigate to:
https://www.newsite.com/our-range/
I am redirected to this URL which displays my custom error 404:
https://www.newsite.com/products.php/?fname=our-range
I note the following lower down in the HTACCESS
- Code: Select all
#products.php
RewriteRule ^products$ "$0/" [R=301,L,QSA]
RewriteRule ^products/$ products.php [L,QSA]
RewriteRule ^products/.*?([^\.\/]*)\.html$ products.php?pname=$1 [L,QSA]
RewriteRule ^products/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ products.php?d=$1$2$3 [L,QSA]
RewriteRule ^products/[^\.]*?([^/\.]*)/$ products.php?fname=$1 [L,QSA]
RewriteRule ^products/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
What am I doing wrong?
Thank you!