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, 07:07 PM
Post #2


Senior Member
******

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



say for example, your custom error page is saved at http://gippersnaplyts.com/files/pages/wtfe.php. in your .htaccess file, you'd put this:
CODE
ErrorDocument 404 /files/pages/wtfe.php

if it was saved at http://gippersnaplyts.com/wtfe.php, your .htaccess file would look like this:
CODE
ErrorDocument 404 /wtfe.php

you can include the full url if you want; doing it the way i'm giving examples just saves space, be it only a few bytes.
 

Posts in this topic


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