Search squid archive

RE: FW: failure notice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Dimitry Gavrilov [mailto:dimitry@xxxxxxxxxxxxxx]
> Sent: Friday, July 15, 2005 1:42 PM
> To: squid-users@xxxxxxxxxxxxxxx
> Subject:  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


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux