404 errors? |
404 errors? |
![]()
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. |
|
|
![]() |
![]()
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 |
|
|
![]() ![]() |