Re: [users@httpd] [RESOLVED] Regular Expression Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux