470,833 Members | 1,688 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

normal error 404 page

how would i go about getting the location of the current error 404
document for some directory with php? looking at the .htaccess file
for a given directory isn't gonna do it because the error 404 document
could have been assigned in some preceeding directory, or somewhere
else...
Jul 17 '05 #1
1 1368
On Sun, 01 Aug 2004 23:26:59 GMT, yawnmoth <te*******@yahoo.com>
wrote:
how would i go about getting the location of the current error 404
document for some directory with php? looking at the .htaccess file
for a given directory isn't gonna do it because the error 404 document
could have been assigned in some preceeding directory, or somewhere
else...


as a follow up question, what would happen if i added the following
line:

header('HTTP/1.1 404 Not Found');

to a script which normally returns 'HTTP/1.1 200 OK'? would the
header statement overwrite the 'HTTP/1.1 200 OK' part of the http
response packet, or would it simply result in their being two HTTP
response codes in the HTTP packet?
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Alec | last post: by
2 posts views Thread by Sibylle Koczian | last post: by
3 posts views Thread by Tumurbaatar S. | last post: by
8 posts views Thread by Rusty Shackleford | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.