[CentOS] How to Auto Add forward slash "/" when accessing a link/url through ProxyPass

nate centos at linuxpowered.net
Sun Jul 6 14:51:17 UTC 2008

ankush grover wrote:

> I have the below lines added in httpd.conf file
> RewriteEngine On
> RewriteCond %{REQUEST_URI} /testdiary
> RewriteRule /testdiary(.)$ /testdiary/
> ProxyPass /testdiary  http://testdiary.example.com/
> ProxyPassReverse /testdiary  http://testdiary.example.com/

This is what I do on my systems

RedirectMatch /testdiary$ http://mysite.example.com/testdiary/


More information about the CentOS mailing list