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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to