Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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.

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.

        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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://830310]
and monks are getting baked in the sun...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2018-03-17 18:48 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (225 votes). Check out past polls.