Log In · Register

 
404 errors?
Jamesisgsnap
post Apr 29 2009, 11:02 PM
Post #1


Senior Member
****

Group: Member
Posts: 164
Joined: May 2008
Member No: 647,219



How do you create your own page for 404-errors?

So when someone types something wrong in you can have it say what ever you want instead of it being a blank ugly page?

I seen like a few sites have it, but I can't find them now.
 
 
Start new topic
Replies
fixtatik
post May 3 2009, 10:18 PM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



you can make it however you'd like. basically, the .htaccess file is telling the server that when an error is returned, and it happens to be a 404 error (page not found), then send the visitor to a different page that you specify.

it's not just 404 errors you can make custom pages for. here's a more complete list of all the http status codes that apache servers might return. to make custom pages for those, do the same as for a 404 error, just changing the "404" to something else.

for example, my own .htaccess file has errors for 403 and 404:
CODE
ErrorDocument 403 /403
ErrorDocument 404 /404

the 403 and the 404
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: