| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Rasing a 404 on purpose|
404 php directory
At moment if a user types an invalid category he gets a CATEGORY NOT FOUND MESSAGE.
I would like to RETURN a 404 rsponse. headers and all
How do i do this? thanks
when the user finds a category that isnt there use this header.
header("HTTP/1.0 404 Not Found");
make sure this is before you have output any html
Welcome to WebmasterWorld, rudyten! :)
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved