SEO Services:CQuinnDesign.com<br />727-277-9834<br />
How to Set Up A Custom 404 File Not Found Page<br />Let's do a quick survey: what do you usually do when you click a URL a...
Requirements for Customizing the 404 File Not Found Page<br />It is not possible to customize your 404 error page if your ...
Step One: Creating/Modifying the .htaccess File<br />This step may not be necessary in all situations. Some web hosts alre...
Step Two: Creating Your Error Document File<br />What should go into your custom 404 File Not Found page? <br />It is not ...
Step Two: Creating Your Error Document File (continued)<br />If you like, you can even put a simple form on the page to al...
Common Errors with a 404 Custom Error Page<br />The most common error people have with their custom error page is making a...
Common Errors with a 404 Custom Error Page<br />Another common error is to forget that your 404 Error Page may be loaded e...
Conclusion<br />When a visitor encounters a 404 File Not Found error on your site, you're on the verge of losing the visit...
www.CQuinnDesign.com |727-277-9834<br />Call Today for a Free Consultation, it doesn’t cost anything!<br />S.E.O Website S...
Watch Your Site’s Traffic<br />Your Happiness<br />After You SIGN UP for OUR SEO Services<br />With JUST Search Engine Sub...
Thank You!CQuinnDesign.com<br />727-277-9834<br />
Upcoming SlideShare
Loading in...5
×

Custom 404 pages

331

Published on

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
331
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Custom 404 pages

  1. 1. SEO Services:CQuinnDesign.com<br />727-277-9834<br />
  2. 2. How to Set Up A Custom 404 File Not Found Page<br />Let's do a quick survey: what do you usually do when you click a URL and encounter a "404 File Not Found" error? Do you: <br />Click on the BACK button of your browser and go somewhere else?<br />Try to back up one directory in the URL and try again?<br />Write to the webmaster of the site and the referring site to inform them of the situation?<br />If you are like most people, you'll simply click on the BACK button and try another place. The majority of people don't even know that there are any other alternatives. <br />You thus need to do something so that you do not lose this group of people who come to your site by following an old link or by typing your URL incorrectly. <br />
  3. 3. Requirements for Customizing the 404 File Not Found Page<br />It is not possible to customize your 404 error page if your web host has not enabled this facility for your website. For example, at the time of this writing, if you host at Geocities or Tripod, you would not be able to customize your 404 Error Page. <br />If your web host has this facility, you will usually find mention of this somewhere in their documentation. In fact, if they mention somewhere that you can customize a file named ".htaccess", it probably means that you can also customize your 404 File Not Found error page. <br />The .htaccess file is what Apache web servers use to allow you to fine-tune your web server configurations at a directory level. Other types of web servers handle the customization of 404 error pages differently. <br />
  4. 4. Step One: Creating/Modifying the .htaccess File<br />This step may not be necessary in all situations. Some web hosts already configure their web server so that it will look for a specific file in your web directory when a certain document cannot be found. If so, simply skip this step. <br />If your web server is not an Apache web server, you will have to find out from your web host what you need to do to enable the server to serve your customized file when a file cannot be found. <br />Otherwise, the first thing you need to do is to add the following line to a file named ".htaccess" (without the enclosing quotes and with the preceding period). In most instances, no such file will exist, and you can simply create one with a text editor (such as Notepad on Windows). <br />ErrorDocument 404 /notfound.html <br />You will of course need to put a notfound.html file in the main web directory for the above directive to work. <br />The "ErrorDocument 404" directive essentially tells the Apache web server that whenever it cannot find the file it needs in that directory and its subdirectories, it is to use the document specified in the URL that follows. <br />One .htaccess file in your main directory will do the trick for that directory and its subdirectories. However, if you want a certain subdirectory to show a different 404 File Not Found message, you can always place a .htaccess file into that directory. This will override any .htaccess files you have in the parent directories. <br />
  5. 5. Step Two: Creating Your Error Document File<br />What should go into your custom 404 File Not Found page? <br />It is not good enough to simply let the visitor know that the file could not be found. In order not to lose that visitor, you will have to provide him some way to locate the document he wanted, or you would have lost him. <br />Your page should have one or more of the following things: <br />A link to your main page, with a suggestion that the visitor can find what he wants there.<br />If you have a search engine for your website, you should definitely put a search box on that page. Many people prefer to simply type a query than to scan through your site map.<br />A link to your site map, which lists all the pages on your website.<br />If you know of frequently mistyped URLs on your site, you can even put links to the correct location directly on the page, so that visitors who arrive there from outside can quickly get to the correct page. Remember, you don't want to lose that visitor, so do all you can to help him.<br />Any other navigational aids that you may have - for example, if you have a drop down navigation menu on your normal pages, you should probably put one here as well.<br />
  6. 6. Step Two: Creating Your Error Document File (continued)<br />If you like, you can even put a simple form on the page to allow your visitors to inform you of the broken link. However, the primary aim of this page is not to help you track bad links, but to make sure your visitor does not leave your site if what he wants can be found there. <br />Incidentally, you should make your 404 page larger than 512 bytes, even when you are testing. Otherwise Internet Explorer (IE) will load what it calls its built-in "friendly HTTP error message" instead of your 404 page. <br />www.CQuinnDesign.com | 727-277-9834 | chris@cquinndesign.com<br />
  7. 7. Common Errors with a 404 Custom Error Page<br />The most common error people have with their custom error page is making a mistake in the URL they put in their .htaccess file. This leads the web server into a loop when a visitor tries to access a missing file. When a file cannot be found the server tries to load the file specified in your ErrorDocument directive. But that file does not exist too, so it tries to load the file specified in that directive. You get the idea. <br />Make sure you test your error file by typing in a non-existent URL. Do not test it by typing its real URL - that will of course work but it will prove nothing. <br />www.CQuinnDesign.com | 727-277-9834 | chris@cquinndesign.com<br />
  8. 8. Common Errors with a 404 Custom Error Page<br />Another common error is to forget that your 404 Error Page may be loaded either from the main directory or from a subdirectory or even your CGI-BIN directory. When you put links on your 404 Document Not Found page, such as hyperlinks leading to other pages on your site or links to images (such as your logo), be sure that you use the full URL and not a relative link. That is, use things like <br /><a href="http://www.example.com/sitemap.html">Site Map</a> <br />INSTEAD OF:<br /><a href="sitemap.html">Site Map</a> <br />The first will work even if the 404 page appears for a missing file in a subdirectory, but the second will not. <br />www.CQuinnDesign.com | 727-277-9834 | chris@cquinndesign.com<br />
  9. 9. Conclusion<br />When a visitor encounters a 404 File Not Found error on your site, you're on the verge of losing the visitor that you've worked so hard to obtain through the search engines and third party links. Creating your custom 404 error page allows you to minimize the number of visitors lost that way. <br />www.CQuinnDesign.com | 727-277-9834 | chris@cquinndesign.com<br />We specialize in making custom 404 Pages for your web company, 404 pages can include the correct links to pages on your site which help when people are trying to navigate your site.<br />Call us today! 727-277-9834<br />
  10. 10. www.CQuinnDesign.com |727-277-9834<br />Call Today for a Free Consultation, it doesn’t cost anything!<br />S.E.O Website Services<br />Description of the contents<br />We offer all types of S.E.O Services for our customer, Blogging, F.A.Q. Creation, Custom Content<br />Description of the contents<br />Social Network Marketing<br />Call us today for information on Social Network Marketing<br />
  11. 11. Watch Your Site’s Traffic<br />Your Happiness<br />After You SIGN UP for OUR SEO Services<br />With JUST Search Engine Submission <br />Without Our Services<br />100%<br />Signing Up for our SEO Services will DRIVE REAL TRAFFIC TO YOUR WEBSITE!<br />80%<br />10%<br />20%<br />Your Website<br />Your Website<br />Your Website<br />You<br />
  12. 12. Thank You!CQuinnDesign.com<br />727-277-9834<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×