...

View Full Version : Custom error pages



CaptainB
10-14-2007, 12:30 AM
Hi!

I have seen that it's possible to make your own error pages, but how exactly do you do??

srule_
10-14-2007, 12:31 AM
my host has an option where u can set the error page. Look around your control panel and see if u find anything.

JamieR
10-14-2007, 01:28 AM
If your host is running Apache and you have .htaccess access, use this tutorial:

http://www.javascriptkit.com/howto/htaccess2.shtml

Create an error page for 404 (document not found), 403 (access denied) etc etc, and then reference them in .htaccess.

The page I've referenced has all you need.

If you have cPanel then I think there is a section on setting custom error pages in there.

CaptainB
10-14-2007, 02:07 PM
Weazel, just what I looked for!

CaptainB
10-15-2007, 12:17 AM
One problem:

First, this is what I have written in my .htaccess file (there's something more, but I don't know what it is - it was there when I bought the hosting):

ErrorDocument 404 /errors/pagenotfound.html

The error page works if I ie write www.behrentzs.com/1
But if I specify a filename, ex .php, (www.behrentzs.com/1.php), I just get the normal error page.

How come, and how can I correct it??



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum