You are not logged in.
# Removed do to email appearing on Google search. #
Last edited by MindTooth (2011-01-01 21:57:05)
Offline
I have never set a custom 404 page for a vhost but http://www.404-error-page.com/404-creat … page.shtml seems like it could help.
And also the says says add it to the VirtualHost section not the directory one.
Last edited by kermana (2009-11-28 01:35:21)
Offline
Thank you.
Offline
The way I have done it in a very simple way is to create an .htaccess file in the root directory of the site in question with the following lines:
# serve custom error pages
ErrorDocument 400 /SMART/errors/400.html
ErrorDocument 401 /SMART/errors/401.html
where:
> SMART in the directory name (root directory) where your index.html or index.php or index.py file resides.
> errors is the sub-directory where all the different error files exit.
And that's it. Make sure you do not allow the .htaccess file to be accessible by web users (make it non-browsable).
That's it.
Hope this helps.
R.
Last edited by ralvez (2009-11-28 16:25:58)
Offline