I have some redirects to do and I’m having problems:
As an example I want to redirect this page:
https://www.theenlightenedhound.com/gifts-dog-lovers/dog-is-my-co-pilot-print
to this page:
https://www.theenlightenedhound.com/gifts-dog-lovers/
I have tried the following code in my htaccess file:
RedirectMatch 301 /gifts-dog-lovers/dog-is-my-co-pilot-print(.*) /gifts-dog-lovers/$1
and this works BUT if I try to redirect this page (with a / at the end)
https://www.theenlightenedhound.com/gifts-dog-lovers/dog-is-my-co-pilot-print/
the redirected page changes to:
https://www.theenlightenedhound.com/gifts-dog-lovers//
which has an extra / at the end and doesn’t exist
I’ve also tried this code in the htaccess file:
Redirect 301 /gifts-dog-lovers/dog-is-my-co-pilot-print/ /gifts-dog-lovers/
and this does the reverse - ie it works for this page (with a / at the end)
https://www.theenlightenedhound.com/gifts-dog-lovers/dog-is-my-co-pilot-print/
but generates a 404 error for this page:
https://www.theenlightenedhound.com/gifts-dog-lovers/dog-is-my-co-pilot-print
I’ve also tried lots of redirect and rewrite code to try and get rid of the // but nothing is working.
Any help please - its doing my head in!! I have no HTML knowledge . Thank you all