Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Doing a proper 404 redirect

by JavaFan (Canon)
on Mar 23, 2010 at 15:18 UTC ( #830310=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Doing a proper 404 redirect
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://830310]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-11-27 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (179 votes), past polls