Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: Doing a proper 404 redirect

by JavaFan (Canon)
on Mar 24, 2010 at 10:12 UTC ( #830511=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Doing a proper 404 redirect
in thread Doing a proper 404 redirect

I'm seeking for the _proper_ way to _signal_ a 404 to whatever visits the site (search engines, bots, etc.).
Right.... And you already shown that you know the proper way to signal a 301. You print 301. Now, do you still really not understand how to print 404? Let me explain how one can print 404.
print 404; # TADA! Magic!
Printing an optional message and mandatory network end-of-lines is left as an excercise for the reader.

Please come back to the site if you have problems printing a different number!


Comment on Re^5: Doing a proper 404 redirect
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (18)
As of 2014-08-27 19:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (250 votes), past polls