Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: 404 to Apache

by artist (Parson)
on Oct 30, 2006 at 20:03 UTC ( [id://581367]=note: print w/replies, xml ) Need Help??


in reply to Re^3: 404 to Apache
in thread 404 to Apache

From CGI.pm docs:
print redirect(-uri=>"http://somewhere.else/in/movie/land", -nph=>1, -status=>301);
  The -status parameter will set the status of the redirect.  HTTP
       defines three different possible redirection status codes:

            301 Moved Permanently
            302 Found
            303 See Other
 The default if not specified is 302, which means "moved temporarily."
       You may change the status to another status code if you wish.  Be
       advised that changing the status to anything other than 301, 302 or
       303 will probably break redirection.


That means, I cannot return 404, if I redirect. Is there any way around?
--Artist

Replies are listed 'Best First'.
Re^5: 404 to Apache
by grep (Monsignor) on Nov 01, 2006 at 03:33 UTC
    I read that also, but I actually tried it before I posted. It does really work, my browser reported a 404.


    grep
    One dead unjugged rabbit fish later
Re^5: 404 to Apache
by Anonymous Monk on Oct 31, 2006 at 02:51 UTC
    Depends, what does the RFC say?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found