Cape.Computing Cape.Computing


You Are Here: Home : cape.computing : Developers' Info
Company Information


Electronic Commerce Services



Technical Support And References
Getting On-Line
On-Line Support
Dial-Up Number Finder
Spam Questions
Tech Support Links
Developers' Info
FAQs



People And Places Connected By Cape.Com



Explore Cape.Cod, New England and the World



E-Tools
Online Accounting
Webmail
Domain Registration
Search Our Site
Contact Cape.Com
Sign Up Now!




*

Return To Home Page


Custom 404 Error Page

Glossary Items:

Cape.Com's web servers are configured to present a 404 File Not Found web page, when visitors to your Virtually Hosted domain access an unknown file within your site. In most cases, you'll want to offer them a page that has the same look as others within your site. To provide this option, follow these steps:

  1. Create the HTML pages you want to use as your error message. Give them an easy to remember name like 404.html, and 403.html.
  2. Upload to any place within the public_html folder of your website
  3. Create a file named .htaccess within the public_html folder of your website. Add the following lines to your .htaccess file:
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html

(If your site in not virtually hosted, your htaccess file should look like the following:)

ErrorDocument 404 http://vXX.cape.com/~username/404.html
ErrorDocument 403 http://vXX.cape.com/~username/403.html

(vXX refers to your capecom virtual machine name, e.g., vma, vsm, vmb, etc.)

Now visit a non-existant page on your site, for example foocom.html and you should now see what you entered in 404.html. Additional error documents can be configured. The following are some of the more common web server error codes: Client Errors:

  • 400 Bad syntax
  • 401 Unauthorized
  • 402 Not Used (Payment Granted)
  • 403 Forbidden
  • 404 Not Found

Server Errors:

  • 500 Internal Error
  • 501 Not Implemented
  • 502 Overloaded
  • 503 Gateway Timeout

The information presented in this section is deemed accurate but is not guaranteed. It is provided as a free service to our subscribers and clients. Additionally, Cape.Com, Inc. exercises no editorial control over any links that are outside the www.cape.com domain and the content of these sites does not necessarily represent the views and opinions of our Company, its employees or clients.

You Are Here: Home : cape.computing : Developers' Info
509 Falmouth Rd, Mashpee, MA 02649 - 508-539-9500 - © Cape.Com Inc. All rights reserved.