[squid-users] Re: squid redirector script

From: Adam Aube <[email protected]>
Date: Wed, 16 Jun 2004 20:12:02 -0400

Kiraly Zoltan wrote:

> I use this redirector script for squid proxy. I need to redirect
> www.google.com to www.google.com/ncr
>
> The only problem is because this script redirect www.google.com to ->
> www.google.com/ncr/ not www.google.com/ncr , i without / at end.

> #!/usr/local/bin/perl
> $|=1;
> while (<>) {
> s@http://www.google.com@http://www.google.com/ncr@;
> print;
> }

Try this instead:

s@http://www.google.com/?@http://www.google.com/ncr@

Adam
Received on Wed Jun 16 2004 - 18:10:13 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:02 MDT