Hi,
        I have written script which redirects my squid to local
apache.It works fine for FOLLOWING SCRIPT

    #!c:/perl/bin/perl.exe
    $|=1;
    while (<>) {
    s...@http://www.az....@http://117.195.4.252@;
    print;
     }

But whenever I use this script
#!c:/perl/bin/perl.exe
$|=1;
while (<>) {
    s...@http://www.az....@http://117.195.4.252//index.html@;
    print;
   }

It doesnt work.I observed that this is happening due to redirect
program which is appending / at the end of rewritten url.It gives
error as:
                                               The requested URL
/index.html/ was not found on this server.
How to avoid that?
Regards,
  Jayesh

Reply via email to