Hi, have two servers. One is using mod_proxy and ProxyPass to redirect traffic to the other one. Now I want to use mod_rewrite on the first server to rewrite some URLs before they are sent to the second server.
These are my rules so far:
Rewrite:
RewriteCond %{HTTP_HOST} ^([^\.]+)\.blinkenshell\.org$ [NC]
RewriteRule ^(.*)$ http://blinkenshell.org/~%1$1 [L]
Proxy pass:
ProxyPass / http://192.168.1.12:8080/
ProxyPassReverse / http://192.168.1.12:8080/
This works fine. But there is a problem. I want to make the redirect silent, so I rewrite the rewrite rule to:
RewriteRule ^(.*)$ /~%1$1 [L]
And poof, everythings stops working. The rewrite rule doesn't even seems to be processed. I get a request for / on the first server, and the second server doesn't get a request at all.
What is wrong?