Try appending the slash to google.com, so it also will be substituted.

[EMAIL PROTECTED]://www.google.com/@http://www.google.com/ncr@;

/Andreas


----- Original Message ----- 
From: "Kiraly Zoltan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 15, 2004 12:09 PM
Subject: [squid-users] squid redirector script


> 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.
> 
> So.. www.google.com/ncr is an existing page and www.google.com/ncr/ not
> exist.
> 
> #!/usr/local/bin/perl
>         $|=1;
>         while (<>) {
>                 [EMAIL PROTECTED]://[EMAIL PROTECTED]://www.google.com/ncr@;
>                 print;
>         }
> 
> Any good perl programmer help me ?
> 
> I don't want squirm because not work on my OpenBSD box, im interesed in a
> simple script.
> 
> Thanks !
> 
> 
> 

Reply via email to