Page 1 of 1

Custom error pages with .htaccess

Posted: Tue Aug 03, 2004 9:33 pm
by jslick
I learned this from feyd's .htaccess tutorial: http://www.javascriptkit.com/howto/htaccess.shtml
I am making custom error pages. I have error.php. This is my .htaccess file:

Code: Select all

Code:
ErrorDocument 404 /error.php?e=404
ErrorDocument 401 /error.php?e=401
ErrorDocument 403 /error.php?e=403
ErrorDocument 500 /error.php?e=500
But it doesn't work. That is my entire .htaccess, is there more I need to put? What is the default .htaccess file like? 'Cause mine was overwritten.

Posted: Tue Aug 03, 2004 9:41 pm
by jslick
Never mind, I got it to work from help of a different forum.