Forum Moderators: phranque

Message Too Old, No Replies

Rewrite Cond for newbie

Rewrite Cont

         

jasocl

4:26 am on May 26, 2008 (gmt 0)

10+ Year Member



Hi Guys

I am rather new to "Rewrite cont" and for the matter of fact apache as well. I been reading a number of post from forum and google, but doesnt' matter how I try I am still hitting walls.

I have setup a proxypass to an internal web portal, but when the page is redirected back to user, the portal dose not show the images and also had problem when loggin in.

I am using the following lines to rewrite the return pages. I need all images e.g. www.mydomain.com/custom to look like www.mydomain.com/test/custom.
1) Basically add test/ after www.mydomain.com on all return pages.

RewriteEngine on
rewritecond %{HTTP_HOST}!^www\.mydomain\.com [NC]
RewriteRule ^/(.*) [mydomain.com...] [L,R]

ProxyPass /test [mydomain.com:8080...]
ProxyPassReverse /test [mydomain.com:8080...]

and obviously it's not working, any ideas anyone?

Thanks in advance