.htaccess and mod_proxy

#1
Hello.

I am attempting to do a reverse proxy with a site we have that uses a remote web-server. I am trying to maintain a .htaccess file that has a proxy RewriteRule in it. This re-write rule isn't just a simple re-write, it has a few pieces after the $1, for example:

RewriteRule (.*) http://www.thedomain.net/$1?prog_id=something&%{QUERY_STRING} [P]

When I just setup the RewriteRule, LiteSpeed tells me I need to add an external app with the web server as the name. When I do this, it works..somewhat. It directs me straight to www.thedomain.net, without any regard for the ?prog_id=, etc.

I've read that I need to be using the 'Context' proxy, however I havent had a whole lot of success setting this up either. When I set it up for where it needs to be, it continues to redirect me to www.thedomain.net, as if nothing had changed...

Any help would be great.
 

mistwang

LiteSpeed Staff
#2
Currently the rewrite rule does not support changing query string, can only change the request URI part. Next release will support changing query string.
 
Top