in reply to Re: •Re: Re: Perl/CGI redirect.
in thread Perl/CGI redirect.

One hint I can offer is that relative links may not work correctly when you generate a redirection to another docu? ment on your site. This is due to a well-intentioned optimization that some servers use. The solution to this is to use the full URL (including the http: part) of the document you are redirecting to.
I know that quote. That's not talking about /fred/barney/dino.txt. That's talking about just barney/dino.txt, which does in fact have problems in some situations. The "solution" is overkill (always use an external redirect), but successful. An internal redirect (one that is an absolute path without a scheme or hostname) is also valid for some operations, and it's important to know when.

-- Randal L. Schwartz, Perl hacker

  • Comment on •Re: Re: •Re: Re: Perl/CGI redirect.