httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boysenberry Payne <boysenbe...@humaniteque.com>
Subject Re: [users@httpd] help with rewrite rule
Date Mon, 17 Jul 2006 18:44:36 GMT
How about adding this:

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


Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Jul 17, 2006, at 1:40 PM, Mike Soultanian wrote:

> Hello,
> We have to proxy our requests on our web server but we're running into 
> some problems.  I'm having a problem with the following rewrite rule:
>
> RewriteRule /(.*) http://localhost:81/$1 [P]
>
> If I do not specify the trailing slash when using a folder name, I get 
> an error.  So, for example, if I go here:
>
> http://134.139.143.27/kcty/
>
> it works fine.  However, if I use the following:
>
> http://134.139.143.27/kcty
>
> it forwards my browser here:
>
> http://localhost:81/kcty/
>
> which is incorrect.  Does anyone know how I can update the rule so 
> that it will correctly put the trailing slash back on the url when a 
> folder is specified?
>
> Thanks!
> Mike
>
> ---------------------------------------------------------------------
> 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
>
>
>


---------------------------------------------------------------------
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