httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Soultanian <>
Subject [users@httpd] redirect trailing slash problem
Date Tue, 13 Jan 2009 07:55:53 GMT
I have a virtual host that accepts all traffic on port 80 and then 
forwards that traffic to another virtual host on port 81:

RewriteRule /(.*) http://localhost:81/$1 [P,L]

It works great except when I leave off the backslash.  So, for example, 
"" works correctly and so does "" (no 
trailing slash).  However, if I add a folder without the slash (i.e. 
"") , I get forwarded to 
"http://localhost:81/folder/" instead of "".

Does anyone know how to tweak my rewrite such that it will forward 
correctly, regardless of whether or not the folder has a trailing slash?


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