[thelist] Mod rewrite: Handling Two Domains

Phil Turmel philip at turmel.org
Wed Sep 6 15:12:15 CDT 2006


Dave Stevens wrote:
[snip /]
> RewriteCond %{HTTP_HOST} ^www.foo.com$ [NC]
> RewriteRule ^(.*)$ http://www.bar.com/ [P,L]
> 
> The 'P' there invoking the Proxy option.
> 

Dave,

I think you're pretty close...

try this:

RewriteCond %{HTTP_HOST} ^www.foo.com$ [NC]
RewriteRule ^/(.*)$ http://www.bar.com/$1 [P,L]

(not tested)

HTH,

Phil



More information about the thelist mailing list