1

I need a 301 redirect for tag pages that have been created, for example:

http://www.mydomain.co.uk/tag/endovenous-laser/page/14/?m&pgd=10

It might look something like this I guess, but this did not work:

RewriteRule^tag/endovenous-laser/(.*)$ http://www.mydomain.co.uk/treatments/endovenous-laser-ablation-evla/ [R=301,L]
1

This is the method I use:

RewriteCond %{REQUEST_URI} ^/tag/endovenous-laser/.*$ [NC]
RewriteRule .* http://www.mydomain.co.uk/treatments/endovenous-laser-ablation-evla/ [R=301,L]

Short of a typo, this should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.