I have tried repeatedly to set 301 redirects for this particular old URL and I just can't get anything to work. If anyone enjoys solving these rewrite puzzles, I would be grateful for any help.
http://www.example.com/subdir/anmviewer.asp?a=7&z=2 which should redirect to: http://www.example.com/april-20-2004
I have tried:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^a=78&z=2$ [NC]
RewriteRule subdir/anmviewer.asp http://www.example.com/april-20-2004/? [R=301,L]
But it fails. Can anyone detect what I'm doing wrong?
Thanks in advance for any help.