Forum Moderators: phranque
redirect 301 /cgi-bin/nph-test.pl/(.*) http://www.example.com/leeches/leech.gif
the .htaccess is in:
/home/exampl/public_html/
my cgi-bin directory is in:
/home/examp/public_html/cgi-bin/
Here is an example link i'm trying to redirect:
http://www.example.com/cgi-bin/nph-test.pl/010110A/http/www.google.com
Do I need anything else in my .htaccess to allow this to work? I have another redirect in there which works just fine:
redirect 301 /blog/ [blog.example.com...]
[edited by: jdMorgan at 5:19 pm (utc) on Jan. 14, 2009]
[edit reason] Please use example.com [/edit]
Use RedirectMatch instead. See the Apache mod_alias documentation for important details.
Jim
Your RedirectMatch syntax looks OK.
Jim