httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <...@bourse.ch>
Subject Re: Web Redirection
Date Fri, 19 Apr 2002 11:18:02 GMT
James Tait wrote:
> 
> Diye Wariebi wrote:
> >>I am trying to redirect a site as below
> >>
> >>When you type in http://www.domain.com I want the user to be redirected
> >>to http://www.new-site.com but I want their browser to still show
> >>http://www.domain.com
> 
> Surely you can proxy the request?
> 
> RewriteEngine on
> RewriteRule /(.*) http://www.new-site.com/$1 [P]
> 
> This assumes, of course, that mod_proxy is enabled.

Yep - that'll work... I always forget about mod_proxy! The poster should
be aware however that all proxied traffic will have to pass through his
server - but that's his lookout...

Rgds,

Owen Boyle.

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message