Website Promotion
  Home arrow Website Promotion arrow Page 5 - Keeping Visitors Through 404 Errors
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Mobile Linux 
APP Generation ROI 
IBM® developerWorks 
Sun Developer Network 
SEO Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEBSITE PROMOTION

Keeping Visitors Through 404 Errors
By: Trevor Stolber
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2004-02-16

    Table of Contents:
  • Keeping Visitors Through 404 Errors
  • Why You Need an Error 404 Page
  • What Should an Error 404 Page Look Like?
  • What Are the Requirements for Setting Up an Error 404 Page?
  • Making Your File

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Keeping Visitors Through 404 Errors - Making Your File


    (Page 5 of 5 )

    Now that all that’s out of the way, here’s how to make your .htaccess file.

    1) Open up your favorite text editor.

    2) Paste this code into the editor:


    ErrorDocument 404 /filename.html

    3) Save as htaccess.txt.

    4) Upload the file to the Top Root of your directory.

    5) Rename the file as ".htaccess".

    6) Create and upload the error 404 document filename.html

    7) Type in an incorrect file path such as www.YourDomainName.com/does-not-exist.html

    8) Revel in your hard work

    What Does it All Mean?

    The .htaccess file used effectively can be a very powerful tool.  It can be used for far more than just creating error404 documents. In this case it simply tells the server that the ErrorDocument 404 is /filename.html rather than the default ErrorDoocument 404. If this command were not in .htaccess or if there was no .htaccess at all then the default 404 error document would be displayed.

    The .htaccess file can be used to stop certain user agents from visiting the site e.g. – an annoying spider that won’t obey the robots.txt file. It can be used in conjunction with .htpasswd to password protect a directory as well as many other things.

    In Conclusion

    Having a custom error 404 document may not seem like a big deal but when you consider that it needs no maintenance, does not cost anything and keeps your potential customers on your site becomes a smart move. By holding on to your customers you are keeping them on your site ready to buy from you, not your competitor. This is a classic example of the phrase “prevention is better than cure.” 

    The important things to remember are:

    1. Make sure you have the dot in the .htaccess file.
    2. Make your error 404 document look like every other page on your site.
    3. An Error 404 page stops bad and out-of-date links tarnishing your image and keeps customers on your site.

    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    WEBSITE PROMOTION ARTICLES

    - Link Building Outside the Box
    - Protect Your Online Reputation
    - SEO Clients to Avoid
    - Short is Sweet for Web Copy Writing
    - Choosing the Domain Name of Your Dreams
    - Thwarting Content Theft
    - Book Review: The Open Brand
    - Seven Important Qualities for Good Linkbait
    - Creative Advertisements: Psychology of Winni...
    - Making Social Media Optimization Work for You
    - Responding to Negative Publicity Online
    - Creative Advertisements: the Psychology of F...
    - Take Charge of Your Online Reputation
    - Optimizing Your Press Releases
    - Building Linkbait? Do Your Homework





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT