> -----Original Message-----
> From: Dimitry Gavrilov [mailto:dimitry@anchorfree.com]
> Sent: Friday, July 15, 2005 1:42 PM
> To: squid-users@squid-cache.org
> 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
Received on Mon Jul 18 2005 - 13:39:54 MDT
This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:02 MDT