[squid-users] images don't display after redirecting

From: Mack <RAGAN_DAVIS@dont-contact.us>
Date: Fri, 04 Apr 2003 11:01:53 -0500

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
Received on Fri Apr 04 2003 - 09:02:06 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:41 MST