How to Set Up a Custom 404 File Not Found Page

Wednesday, September 17th, 2008

Ok, this is a pretty simple thing to do and it has some important benefits.

Have you ever visited a website or a only to find that annoying “Not Found” ? If so, what did you do? You probably got ticked off, hit the back button and visited another website. Can you imagine someone coming across a “Not Found” page on your website? Well, if you don’t have a custom 404 “File Not Found” page set up on your website, that might just be happening.

Here is what you need to do to fix this problem and keep your visitors on your website.

The first thing is to create a with some sort of message on it. Something like, “Whoops, looks like the page you are looking for isn’t here. Please click this to visit our home page or our page…” You get the idea. You can save the page as “404.” or something similar and upload it to the root of your web .

Oh, I forgot to mention this. In order to do what I am suggesting here, you need to be running an Apache web and your web has to allow changes to your .htaccess file. I am sure there are other ways to create a custom 404 File Not Found page and get it up and running, but I am only talking about one way here.

Now, open up your .htaccess file and place this code into it somewhere. I like to place it right on top:

ErrorDocument 404 /404.

I am using . extensions for this stuff just because of habit and preference. You can use . or whatever you wish.

Well, that’s basically it. You can now save your .htaccess file and upload it to the and go see if it worked. Try typing in some page that you know isn’t there. If it works, please read my previous post about “How To Check Your Web Page HTTP Headers & Response Codes” for some important information.

Good luck.

Related posts

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

How To Check Your Web Page HTTP Headers & Response Codes

Tuesday, September 16th, 2008

There may be cases when you would like to see what your HTTP headers look like. Why? Well, because they are kind of important. As Wikipedia states, the HTTP define what the returned data looks like.

Still you ask, “Why in the world do I care about that?” Ok, I’ll keep going. The main reason I look at the HTTP is to find out what the HTTP status code is. The reason the status is important to me is because this is the the engines use for a multitude of things.

Let me give you a little example, and this related to my previous post regarding the sudden drop in Google rankings. As I was doing research into what the problem may be for this particular website, I came across an issue where someone had recently put custom “404 Not Found” pages up on some of their websites. Everyone knows that custom “404 Not Found” pages are cool, but what some people don’t know is that if those pages show a “200 OK” (successful HTTP requests) , the site may be in big trouble, . The reason for this is because there are going to be many “404 Not Found” pages on a dynamic website. If you have your custom “404 Not Found” page showing a “200 OK” response , the engines will think that all the instances of this page are duplicate. You know as well as I do, that spells trouble.

What’s worse is if you set your as your “404 Not Found” page. Your is going to return a response of “200 OK.” That’s not good, because now you have multiple instances of your …all duplicate content.

It’s my opinion that the engines are smart enough to figure this out. The page (such as your ) with the highest Pagerank will prevail. Still, I have some websites that I am working on that have multiple instances of the and they all have Pagerank, which isn’t good, because the duplicates are taking the Pagerank from the real page. Now, again, that’s my opinion.

Here are two tips:

- How to check your HTTP - visit this website or just Google “Website header check”

- How to set a particular page as your “404 Not Found” page in your .htaccess - Just place this in the : “ErrorDocument 404 /404.” without the quotes. The 404. is the actual page in this case.

Related posts

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , ,