Welcome to WebmasterWorld Guest from 54.242.63.214

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Rasing a 404 on purpose

404 php directory

     

rudyten

9:13 am on Mar 21, 2008 (gmt 0)

5+ Year Member



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

Scally_Ally

1:27 pm on Mar 21, 2008 (gmt 0)

5+ Year Member



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

Ally

eelixduppy

1:48 pm on Mar 21, 2008 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Welcome to WebmasterWorld, rudyten! :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month