Skip to main content

Custom 404 Error Page

What is 404 Error Page?
The 404 Error Page or typically speaking the "PAGE NOT FOUND" error message is an HTTP standard response code, which indicates that the user was able to communicate to the server, but either the server could not find what was requested, or it was configured not to fulfill the request.

In simple language it's that when you encountered a website and clicked a link just to gather more information but you see a frustrating 404 error as page not found. Other ways of getting this error is like you are a frequent visitor and you know a particular URL of the website, and when you entered that the page not found message displays, because either the page is not there or it's address is changed.

The 404 errors reveal that the server is there and it should not be confused with the SERVER NOT FOUND error, where the destination server cannot be found.

What is a Custom 404 Error Page?

Now, we can talk more about the 404 Pages in SEO point of view. We have a website and we have a visitor to our site. But somehow the visitor is not able to see the information or the web page on to the website, and thereby he is taken to the standard 404 error message, as to Page not Found, which looks something like




Not Found


The requested URL /test.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.yourwebsite.com Port 80






which obviously is not at all appealing to the users. So you can create a custom error page for your website in order to retain the visitors, who may leave if they get the standard "File not found" page.

A custom error page is a page which consists of some important links to the website, or a search box to search the website, a funny message or anything. It typically shows and provides visitor the information which he/she may be interested into. An example from BBC.com showing the Custom Error Page.



How to Create a Custom 404 - Error Page?

The first thing which comes into notice is weather the web host of the website provides the facility to customize the page or not. It can be done by checking the .htaccess file of the website and that weather it can be customized or not. If yes then you can modify the file in order to create the customized 404 error page. The .htaccess is typically the configuration file for the Apache Server.

The following steps should be considered in order to create the custom 404 error page,
  • Updating the .htaccess file
  • Creating your custom 404 error page
  • Testing the page


1) Updating the .htaccess file
If you are not using the Apache Server configurations then you need to find out from the web host, as to what you need to do to enable the server to serve your customized file when a file cannot be found. Other than that, i.e., for Apache check out the file called as .htaccess, if its not there then you can create one.

Open notepad and save the file as .htaccess, make a note of it that the file name extension should be preceded by a dot. This files tells the server about the website.

Open the .htaccess file with any text editor and add the line as it is, with all spaces and same format

Syntax:
ErrorDocument 404 /pagenotfound.html

where,

ErrorDocument - informs the Apache server that when ever it is not able to find the files in the directories or the sub-directories of the site, then it will show the proceeding URL document. The point to be noted here is the 'E' and 'D' should be used in the same format without any space. This is case sensitive.

The .htaccess file will do the work and display the custom error page, but in case you need to display another custom error page for sub-directory, then you just need to place another .htaccess to that partcular sub-directory, with different custom page.

2) Creating your custom 404 error page
A Custom 404 Error Page is another html page on your website. There are the following things which can be considered while creating the custom error page,
  • The Custom Error Page should look similar to the website,
  • It should use clear language to notify the error,
  • It should provide a link to the HOME PAGE, and a link to the Sitemap, telling the important pages of your site,
  • The page should provide a search box if the website offers search feature,
  • There should be an e-mail address, for the visitor to report the problem.

3) Testing the page
In order to test the page, just type the URL in the address bar which is irrelevant, and you will see that your error page is loaded.

Note that, don't forget to upload the file in the root directory of the server.

You have worked so hard in creating a website, and then maintaining it. It would be too weird that a visitor comes and only because he cannot find the information he was looking for on your website, he went off. By creating custom 404 error page, it's really helpful to retain your visitor and increasing the chances of getting more visibility.



You may also be interested in reading the following,

Comments

Popular posts from this blog

List of 100 Article Directories

An article is an essay or a research on a particular topic. Article provides a lot of exposure to your business and very high relevant traffic to your website. Other than providing the quality traffic, article submission has SEO benefits also, it gives a valuable back-link to the website. So here we go with the list of 100 Article Submission websites, "BEST 100 ARTICLE DIRECTORIES" S.No. ARTICLE DIRECTORY PR SUBMISSION PAGE STATUS 1 MAGPORTAL 7 Submit Article SIGN UP 2 EMEDIAWIRE 6 Submit Article SIGN UP 3 EZINEARTICLES 6 Submit Article SIGN UP 4 GOARTICLES 6 Submit Article SIGN UP 5 WEBPRONEWS 6 Submit Article SUBMIT 6 ARTICLEPOOL 6 Submit Article SIGN UP 7 MARKETINGSOURCE ARTICLES 5 Submit Article SUBMIT 8 ARTICLEMOTRON 5 Submit Article SIGN UP 9 ARTICLESON 5 Submit Article SIGN UP 10 ARTICLESBASE 5 Submit Article SIGN UP 11 BUZZLEARTICLES 5 Submit Article SIGN UP 12 ARTICLEALLEY 5 Submit Article SIGN UP 13 ARTICLE DASHBOARD 5 Submit Article SIGN UP 14 WEB-SOURCE 5 Submit A

Optimizing Your Website for Local Searches: A Local SEO Guide

Local SEO Guide In today's digital landscape, local businesses must prioritize their online presence to attract and retain local customers. One of the most effective strategies for achieving this is by optimizing your website for local searches. In this comprehensive guide, we will explore the key steps and best practices to boost your local SEO and ensure that your website ranks prominently in local search results. The topics covered in the local SEO guide are listed below,   Understanding Local SEO Keyword Research for Local SEO On-Page Optimization Techniques Website Localization Google My Business Optimization Local Link Building Strategies Mobile Optimization for Local Searches Online Reviews and Reputation Management Social Media for Local SEO Tracking and Measuring Local SEO Performance Please comment if you feel something is missing! Understanding Local SEO Local SEO refers to the practice of optimizing a website and online presence to increas

List of 100 Top SEO Forums

Forums are online communities which provides the users to hold discussions, ask/research (already posted) questions, on the world wide web. Generally speaking forums are another name for discussion boards, or message boards. They enables the users to share, discuss or put the questions based on the theme of the websites. Benefits of Forums There are several benefits for which the forums are used, It's an online community where the users of the websites, can interact with the other users, and exchange tips and place questions based on the theme of the website. They save the information posted, and makes it readily available for the others to read the post. The posts get to read again and again, and the user can post the reply to the already placed post. Forums also allow to increase traffic to your website through repeated visits, gain creditability & build relationship with visitors. It also acts as a kind of Direct Advertising, that increases the ROI. There are large number of

How to create XML sitemap for your Blogger Blog Manually?

How to Create XML sitemap for your Blogger Blog Manually? Creating an XML sitemap for your Blogger blog can be done manually by following these steps: Open a text editor Open a plain text editor on your computer, such as Notepad (Windows) or TextEdit (Mac). Start the XML document Begin by typing the XML declaration at the top of the document: Add the root element Below the XML declaration, add the root element for the sitemap:     Add URL entries For each page of your blog, add a URL entry within the tags. Here's an example for a blog post: Replace "https://yourblog.blogspot.com/your-blog-post-url" with the actual URL of your blog post. Use the tag to specify the date of the last modification in the format YYYY-MM-DD. indicates how frequently the page is likely to change (e.g., "always," "hourly," "daily," "weekly," "monthly," "yearly," "never"). represents the priority of the page on a scal

Contact Us

SEO Blog will be delighted to provide any sort of web marketing assistance. Contact us for all your SEO related queries at, tusharvickkie (at the rate) gmail (dot) com Remove spaces and braces with the respective symbol in order to contact to SEO Blog. We love to hear from you.

Local SEO Guide

Local SEO Guide
The Local SEO Guide - the key steps and best practices to boost your local SEO and ensure that your website ranks prominently in local search results.