Hi!

I have a simple perl script adapted from the ones shown at squid-cache.org.  It 
redirects to 301:http://www.somewhere.com. The redirection works fine now.  
However, the default page on www.somewhere.com has links to images.  These 
images are not displayed, instead there's a placeholder with an X on it.  The path to 
the images is a relative one (images/arrow.gif).

If I use squidGuard for redirection instead, then I CAN see the images.

Here's the perl script I use:

#!/usr/bin/perl
$|=1;

while (<>)
{

        @X = split;
        $url = $X[0];

        if ($url =~ /^http:\/\/www\.somewhere\.com/)
        {
                exit;
        }
        else
        {
                 print "301:http://www.somewhere.com\n";;
        }
}


Thanks!
mack

Reply via email to