Sunday, June 29, 2008

Customize Error document with .htaccess.

Add following in your sites DocumentRoot to take the error page from within errors folder in DocumentRoot.

Code:
--------------------------------------------------
ErrorDocument 400 /errors/badrequest.html
ErrorDocument 401 /errors/authreqd.html
ErrorDocument 403 /errors/forbid.html
ErrorDocument 404 /errors/notfound.html
ErrorDocument 500 /errors/serverr.html
--------------------------------------------------

No comments: