httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: 3 days of mod_rewrite madness - please help?
Date Fri, 14 Jun 2002 01:51:52 GMT
K a z wrote:
> 
> Ugh. Had typo's in that last message...
> Is corrected below.
> 
>> requests to http://www.site-one.com/foo/bar.cgi would be served from
>> http://site-two.com/footwo/bar.cgi or /path/to/sitetwo/footwo/bar.cgi
>> and still keep http://site-one.com/foo/bar.cgi in the browser address 
>> bar.
>>
>> Anyone know how to do this?
>>
>> The closest I can get is
>>
>> RewriteRule ^bar\.cgi$  http://www.site-two.com/footwo/bar.cgi [R]
>>
>> But the R rewrites/redirects the url in the address bar too =(.

Make sure mod_proxy is included in your apache build, then use

RerwiteRule ^bar\.cgi$ http://www.site-two.com/footwo/bar.cgi [P]

P is for "Proxy".

Joshua.





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message