httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chase <xan...@juun.com>
Subject Re: [users@httpd] [RESOLVED] Regular Expression Question
Date Thu, 28 Jul 2005 06:19:47 GMT
got it working.

here's what i did:

in /.htaccess, i've got:

     RewriteEngine on
     RewriteRule ^(.*)$ http://www.foo.com/$1 [R=301,L]


and in /cgi-bin/.htaccess, i've got:

     RewriteEngine off



it's not perfect.  for instance, if someone requests http:// 
www.foo.net/cgi-bin/something_else, it won't get redirected to  
foo.com, it'll just return a 404 (from foo.net) when it doesn't find  
the file on foo.net.

but for all other file requests, it'll work perfectly.

cheers.

- chase



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message