httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Traver <>
Subject [users@httpd] Forcing External Redirect requests through mod_rewrite and proxy
Date Tue, 14 Jun 2005 19:05:41 GMT
Hi all,

ok, this may sound wierd, but I'm sure you guys have heard it all...

I am trying to do a proxy redirect using the [P] directive at the end of 
a mod_rewrite rule. Here is what my .htaccess file looks like :

RewriteEngine On
RewriteCond %{REQUEST_URI} !-s
RewriteRule ^page/(.*)$1 [P]

What I want to happen is for this proxy request to not be an internal 
one, but make the request externally. The reason for this is because we 
have load balancing switches that determine where requests go based upon 
the URI, and this machine is not supposed to handle the .mvc scripts 
(another bank of machines is)...

So, a request comes in for and I want it to 
send out a proxy request to

The reason I do't do a Redirect, is that I do not want the URL to change 
in the users browser...

is there a directive to add to the [P] that can tell it not to do this 
request internally ???

or better yet, is there another module, or resource I can find that I 
can use to accomplish something similar ???



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message