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” error 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” error 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 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 search page…” You get the idea. You can save the page as “404.php” or something similar and upload it to the root of your web server.
Oh, I forgot to mention this. In order to do what I am suggesting here, you need to be running an Apache web server and your web host has to allow changes to your .htaccess file. I am sure there are other ways to create a custom 404 File Not Found error 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.php
I am using .php extensions for this stuff just because of habit and preference. You can use .html or whatever you wish.
Well, that’s basically it. You can now save your .htaccess file and upload it to the server 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: 404 php, Apache, apache server, apache web server, code, Codes, custom, custom 404, error, error message, ErrorDocument, File, file upload, header, headers, HOST, htaccess file, html, HTTP, link, php, php extensions, Response, response code, root, search, search page, server, web host, web page, website
Posted in Websites | No Comments »
Monday, September 15th, 2008
A colleague of mine gave me a call yesterday morning with some rather upsetting news. Apparently, one of his websites took a plunge in its Google Ranking. He wanted to know what could cause such a sudden drop in Google Ranking like this.
I really didn’t have an answer for him. The site has been alive (but in the Google Sandbox) for about four years. It always struck me as strange that the site was sandboxed for such a long time. It literally took four years to come from page 30 in the Google Rankings to page one. Suddenly, last month, the website appeared on page one for its most prime keywords. Now, this wasn’t a gradual change in ranking, it was a huge jump.
The website doesn’t appear to have anything wrong with it. I gave the entire site a once over. I checked the typical meta information and linking structure and found nothing wrong. The website really hasn’t changed in months, besides the content, so it led me to believe there are outside forces at work.
The question I have is, “Why would a website, with a poor ranking, suddenly rank number five on Google one month and then fall back to page 24 the next month?”
I tried to get some information out of my friend. The only thing major he did in the past few weeks is to add a custom 404 or Not Found error message. I checked the 404 page to make sure the headers were correct and not giving 200 results. They error 404 pages were fine.
Then, I went over to Copyscape to see if there were any copies of his homepage. I have heard this can cause a sudden drop in Google rankings. I did find a proxy website that had almost his entire website cached and was trying to pull it off as its own. This wasn’t a typical proxy server trying to speed up the internet. This was something else…more like an intercept proxy.
I looked in the log files to find the IP address of this proxy website. I found it and blocked the IP address in his .htaccess file and then checked the proxy website again. His website no longer showed and was replaced by the Red Hat error page instead.
We will have to give this a few weeks to see if anything changes. I am now thinking that is something does change (for the better), this may have been what was causing the extremely long Google Sandbox issue as well.
If you have any further suggestions, please let me know via comment.
Related posts
Tags: custom 404, error 404, google, google ranking, htaccess file, intercept, ip address, meta, plunge, rank number, red hat, sandbox, website, Websites
Posted in Websites | 2 Comments »