in reply to Redirect problem

And the log says?

Replies are listed 'Best First'.
Re^2: Redirect problem
by DreamT (Pilgrim) on Feb 01, 2012 at 08:44 UTC
    Nothing. This isn't a compilation problem or so, the white page is probably because of that the "Location:" is the only line that is printed.

      AFAIK, the Location header must contain an absolute URL, not a relative.

      Use Firebug or Wireshark to find out what is sent to the browser. I guess Apache enforces status 404, so you won't get the 30x redirection that you expect. Perhaps you need to add a Status header.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
        It actually works when calling /cgi-bin/errorpage.pl directly, so I guess that the Location isn't the problem, this is probably related more to the Apache handling?

        AFAIK, the Location header must contain an absolute URL, not a relative.

        HTTP location says different

      Nothing. This isn't a compilation problem or so, the white page is probably because of that the "Location:" is the only line that is printed.

      Logs contain things other than compilation errors.

      In any case, you should use CGI->redirect