Omnis Network, LLC Hosting over 200,000 Accounts since 1999 Live Support 877.393.Host

Home Web Hosting Domains Design Services Affiliates Contact Us
Search Results
Title:
UNIX Error Pages
Article:
.htaccess style error pages

In the root of your website (/www) you can create a file named .htaccess with lines for each error code and what page they should go to.

ErrorDocument 403 /error.html
ErrorDocument 404 /notfound.php


In that example, attempts to load pages that are "forbidden" (usually by access control) will see error.html located in your /www folder. Also in that example, attempts to load pages that no longer exist will display the php file notfound.php also located in /www.

The older style of error pages are no longer recommended as Internet Explorer will override display of error pages using this method.


Default Error HTML Pages (Old Style)
(This method only works on our old servers using Zeus. Newer accounts should use the above listed method.)
To install custom error pages for your site place a file in /etc/errpages named

XXX.html

where XXX is the error code, ex.

403.html

In that file, you will place the info of what you want to display as an error.

For example. To display a custom page if a page is missing would be 404.html since a missing page is a 404 error.
 
Here are a list of Error Codes that can appear:
Code Meaning
204 No content
206 Partial content
301 Moved Permanently
302 Moved Temporarily
303 See Other
304 Not Modified
400 Bad Request
401 Unauthorised
403 Forbidden
404 Not Found
410 Gone
411 Length Required
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
Keywords:

unix error pages 404 htaccess

Contact Omnis Network Manage Your Account
    https://manage.omnis.com

Technical Support
    Tech Support Contact Form
    support@omnis.com

Call Us Toll-Free
    1-877-393-HOST (4678)

Reach Us By Mail
    3655 Torrance Blvd Suite 230
    Torrance CA, 90503
Browse Knowledge Base
Search Knowledge Base Select the search type:
All Articles
How To
Problem
Bug
FAQ
Keywords:

Any word may be in article
All words must be in article

  HACKER SAFE certified sites prevent over 99.9% of hacker crime.       We accept Visa, Mastercard, Discover, AMEX, Check and Paypal