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 web page only to find that annoying “Not Found” message? 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 “ 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 web page with some sort of message on it. Something like, “Whoops, looks like the page you are looking for isn’t here. Please click this link to visit our home page or our …” 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 web and your has to allow changes to your .htaccess . I am sure there are other ways to create a custom 404 Not Found page and get it up and running, but I am only talking about one way here.

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

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 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: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Avoiding Duplicate Content On Your Own Website

Monday, September 15th, 2008

Today has been an interesting day. We have been taking a look at our websites and searching for content using Copyscape. After today’s findings, we might just go with ’s premium service.

Now, let me just tell you that content is everywhere. Actually, someone has probably written this sentence a million times. What we were searching for today was blatant and far reaching . We found a few instances of one of our homepages and general idea taken for someone else’s use as well as many instances of interior pages taken. Needless to say, we made screen copies of these cases and sent them to our attorney’s office. These are serious and can’t be ignored.

I would like to talk about two things you can do to help out a more subtle form of content, on your own .

The first form of content on your own is in the form of vs. non-. If you go to your and type in “.mysite.com” and then type in “mysite.com,” you may see the same page appear. In the search engine’s eyes, these are two copies of the same page. How do you fix this? It’s easy. Just open up your .htaccess file and type in the following :

RewriteEngine On
RewriteCond %{HTTP_HOST} !^\.mysite\.com
RewriteRule ^(.*)$ http://.mysite.com/$1 [R=permanent,L]

When someone types in “mysite.com” to visit your , they will automatically be forwarded to “.mysite.com.” The will be forwarded as well.

Another form of content on your own comes in the form of “.mysite.com/” vs. “.mysite.com/index..” The see this same page as two different ones. What to do? That’s easy too. Just open up your .htaccess again and type in the following :

RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.\ HTTP/
RewriteRule ^index\.$ http://.mysite.com/ [R=301,L]

When someone either types in “.mysite.com/index.” or follows a link like that to your , they will be automatically be forwarded to “.mysite.com.”

Now, here is the disclaimer. I used this on my setup and it worked. Please check with your own hosting company to see if something similar will work for your too.

Related posts

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