In this file, place the following contents:
ErrorDocument 400 http://www.domain.com/error-400.htmlOf course, there are more error codes, but these are the basics
ErrorDocument 401 http://www.domain.com/error-401.html
ErrorDocument 403 http://www.domain.com/error-403.html
ErrorDocument 404 http://www.domain.com/error-404.html
ErrorDocument 500 http://www.domain.com/error-500.html
Of course, you'll have to change your file names, and domain name before placing these in .htaccess
For example, if your URL is http://www.google.com , and people shouldn't be able to access http://www.google.com/admin , make sure your documents point to http://www.google.com/document.html, NOT http://www.google.com/admin/document.html .
The second most common mistake? Using relative paths in your .htaccess file. This would be something like
ErrorDocument 400 error-400.htmlThis can also trigger the above error, with regards to not being able to access the document.
ErrorDocument 401 error-401.html
ErrorDocument 403 error-403.html
ErrorDocument 404 error-404.html
ErrorDocument 500 error-500.html
- Email, SSL
- 0 Users Found This Useful
Question How do I stream Real Audio and Video Files? Answer While we do...
Question Formmail from Matt's Script Archive will not send from an email address...
Question How does Search Engine Placement work?...
Question Can I change the Ã¢â‚¬Å“favicon.icoÃ¢â‚¬Â file for my website(s)?...
Question I have a file with a non-standard extension, how can I get your server to display its...
Powered by WHMCompleteSolution