| Custom Error Page |
Article Index for Custom |
Website Links For Custom |
Information AboutCustom Error Page |
| CATEGORIES ABOUT CUSTOM ERROR PAGE | |
| world wide web | |
| computer errors | |
| http | |
|
You can make them look more like the rest of a site, and/or provide better recovery navigation. The ''Not Found'' (404) error is the one users are most likely to encounter, so it is the most important to customize. DEFAULT 404 ERROR MESSAGES CUSTOM 404 ERROR MESSAGE EXAMPLES CREATING CUSTOM ERROR PAGES The instructions below assume you have direct access to a Web server you set up. If your site is hosted by a third party, they may have already provided one or more default error pages. Check your host's documentation. Custom error page creation using Apache HTTP Server If you run a Web server using the Apache HTTP Server software, you can easily specify custom error pages through server configuration files such as httpd.conf or .htaccess . You can specify custom error pages using the ErrorDocument directive. It is used as follows: # The following line specifies the error page for the '404 Not Found' error ErrorDocument 404 http://yoururl.com/404.htm # The following line specifies the error page for the '403 Forbidden' error ErrorDocument 403 http://yoururl.com/403.htm # The following line specifies the error page for the '401 Unauthorized' error ErrorDocument 401 http://yoururl.com/401.htm This may be put in an .htaccess file, which can be created using a Text Editor . Everything defined in an .htaccess file will only take effect for the directory it is located in and its child directories. Custom error page creation using Microsoft IIS #Use a text editor or an HTML editor to create your custom page on your server #From your server's desktop, launch the Internet Services Manager (usually located at Start->Programs->Administrative Tools->Internet Services Manager) #Click the {Link without Title} to the left of the server name #Right-click on "Default Web Server" (or whatever you may have renamed it as), and click on "Properties" #Click on the Custom Errors tab #Click on the number of the HTTP Error you want to make the custom message for, then click "Edit Properties" #Use the Browse button to locate the custom file you created and click OK. Keep clicking OK to dismiss the windows, then close the IIS window EXTERNAL LINKS
|
|
|