> -----Original Message-----
> From: Dimitry Gavrilov [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 15, 2005 1:42 PM
> To: [email protected]
> Subject: [squid-users] FW: failure notice
> 
> Hi,
> 
> I have openBSD 3.6, Squid 2.5 and Jesred installed and working fine.
> 
> However, the following rewrite rule is not working properly and since there
> are not a lot of documentation available, I need your help.
> 
> The following rule does process .*  symbol, but not \1. 
> 
> regexi ^http://subdomain\.their_domain\.com/results\.aspx?form=get&q=.*$
> http://www.my_domain.com/results.php?q=\1
> 
> What I want it to do is this:
> 
> Redirect http://subdomain.their_domain.com/results.aspx?form=get
> <http://subdomain.their_domain.com/results.aspx?form=get&q=question>
> &q=question to http://www.domain.com/results.php?q=question
> 
> Instead, it redirects to http://www.domain.com/results.php?q=/1
> 
> Please help!
> 
> Thanks!
> 
> Dimitry

Change...

regexi ^http://subdomain\.their_domain\.com/results\.aspx?form=get&q=.*$

...to...

regexi ^http://subdomain\.their_domain\.com/results\.aspx?form=get&q=(.*)$

...(notice the added parenthesis), and I think you will see better results.

Chris

Reply via email to