Re: [squid-users] perl help

From: Donovan Baarda <abo@dont-contact.us>
Date: Fri, 23 Aug 2002 18:28:14 +1000

On Fri, Aug 23, 2002 at 09:02:48AM +0200, S?bastien Rius wrote:
> At 13:52 22/08/2002 -0400, Ryan Hairyes wrote:
> >Hello all,
> >
> >I got this from the squid faq page.
> >I used this perl script as a redirector. Im having one problem with it. I
> >have an image on the page that it is being redirected to. The image is not
> >showing up. It displays itself as a broken link. I check the html on that
> >page and everything is where it should be.
> >Any ideas?
>
> I had the same problem when using squidGuard : when redirecting, the URL
> adresse doesn't change in the URL bar of your browser and all relative
> paths in the page you redirect to are broken. If allowed, try to put
> absolute paths instead.

Squid allows redirectors to specify "301 Moved permanently" or "302 Moved
temporarily" responces. This returns a http responce telling the client to
re-request the redirected url, so all relative links in the redirected pages
should be OK.

all that is required is that the URL returned by the redirector is prefixed
with "301:" or "302:". Most redirectors let you do this.

-- 
----------------------------------------------------------------------
ABO: finger abo@minkirri.apana.org.au for more info, including pgp key
----------------------------------------------------------------------
Received on Fri Aug 23 2002 - 02:28:22 MDT

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