in reply to Doing a proper 404 redirect

Your question is not a Perl question.

Having said that, a resource either doesn't exist (404), or has moved (301) (or something else). It cannot be moved and not exist. So, I don't understand what mean with wanting to handle a 404 as a 301.

Replies are listed 'Best First'.
Re^2: Doing a proper 404 redirect
by DreamT (Pilgrim) on Mar 24, 2010 at 07:31 UTC
    Well, it kinda is a Perl question, since I want to be able to "express" a 404 error using Perl.

    Regarding the 404, there was some wrong thinking on my part:) It's of course up to me to show relevant info when the 404 is made. But, I still want search engines and such to "get" that a 404 has been made.

    In other words, I want to write a correct 404 header. The information displayed after that is basically up to me.
      Wait. So, given that you demonstrated you know how to print "301", you now seek knowledge how to print "404"?

      Sorry, but that's way over my head.

        No.
        I'm seeking for the _proper_ way to _signal_ a 404 to whatever visits the site (search engines, bots, etc.).
        As I wrote, there was a thought error on my behalf. I'm not looking for a redirect.