httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vik Rubenfeld <v...@mindspring.com>
Subject [users@httpd] Re: Redirect without location change
Date Tue, 27 Apr 2004 20:00:15 GMT
>> I would like to know How I can achieve a redirect without having the new URL
>> show up in the browser Location using the apache.

On 3/21/04 11:51 AM, "Malka Cymbalista" <Malki.Cymbalista@weizmann.ac.il>
wrote:

> I asked the same question here a while ago.
> First you have to make sure you have the proxy module compiled into
> your Apache server program. If you don't know please check whether
> mod_proxy.c is part of the ``httpd -l'' output. If yes, this
> functionality is available to mod_rewrite. If not, then you first have
> to rebuild the ``httpd'' program with mod_proxy enabled.
> 
> Then write your rewrite rule as follows:
> 
> RewriteCond %{REQUEST_URI} ^/$
> RewriteRule ^/$ http://www1.location.coml [L,P]
> 
> This assumes that the URL of your web server is http://www.location.com
> hence the REQUEST_URI is simply ^/$

I have a similar question, except that the original URL is coming from a
different server to my server. Will the approach described here still work
in that case?

-Vik


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


Mime
View raw message