[thelist] mod_rewrite redirect to external URL

Maximillian Von Schwanekamp anaxamaxan at neptunewebworks.com
Mon Jul 26 22:40:12 CDT 2004


How can I use mod_rewrite to redirect something like this:
/mydirectory -> http://otherdomain.com/some/arbitrary/file.htm
/* -> http://otherdomain.com/

For the first one, this works fine:
RewriteRule ^mydirectory(.*) http://otherdomain.com/some/arbitrary/file.htm

But I cannot seem to negate the "in all other cases" rule to work 
properly.  Help?

TIA!
-- 
Maximillian Von Schwanekamp
Dynamic Websites and E-Commerce
NeptuneWebworks.com <http://www.neptunewebworks.com/>
voice: 541-302-1438
fax: 208-730-6504




More information about the thelist mailing list