[TriLUG] apache redirect

Jason Tower jason at cerient.net
Thu Jan 19 17:41:01 EST 2006


i have a very simple rule in place that redirects all requests for 
foo.com to bar.com:

<VirtualHost *:80>
         Redirect 301 / http://bar.com/
         ServerName foo.com
</VirtualHost>

i'd like to modify this so that requests for foo.com/somedir* are not 
redirected, but everything else is.  i've tried a bunch of things using 
RedirectMatch but haven't quite gotten it to work.  i think it's just my 
regexp that is incorrect, can anyone lend a hand?



More information about the TriLUG mailing list