Custom Error Pages with .htaccess



Ok, we’ve looked at controlling access to directories with .htaccess, but there are other neat tricks we can do that can add a bit of polish to your site.

One that I’ve implemented lately is a custom error page. Now, we’ve all done this, clicked on a link and get a page that says Error 404 page not found. This is the standard code for “it’s not here anymore.” I noticed at one point I was getting a LOT of 404 errors looking for files that had simply moved, so I did the following.

I created a page that looked like the main theme on the website and named it error.html (I might move it to error404.html soon.) The main contents of the page say the page you tried to access is no longer there it may have been renamed or moved, it gives links to either this site, or the North Carolina Genealogy site which is hosted on the same machine. After 10-15 seconds I’ve done a redirect to the North Carolina Genealogy site since most of the 404 errors were for pages related to that site.

If you’re curious on how to setup a page that refreshes/redirects take a look at Creating a Redirect Page

Related Posts

Blog Traffic Exchange Related Posts
  • Asheville based Web Design, VPS Hosting and SEO Services [/caption] Change is constant. The last couple of years I have been doing less onsite computer service. Health has been one large reason for that. I have been focusing on other things though. One of the things that I've been working on is now going live. I've redesigned my web......
  • A couple interesting online Advertising notes I've run across a couple of interesting things. The first was linked to from the second one I'll mention. I know, some time back, I visited a publicly available Google Adsense tool a few months back and at that time found an interesting tool that gave you keyword suggestions based......
  • Page banned from Google? So for the past month and a half I've been puzzling over northcarolinagenealogy.net and it's mysterious sudden disappearance from google. I mean... let's see, there are a couple hundred posts there. It uses the same template as this and the South Carolina genealogy site do. Nothing really different than the......
Blog Traffic Exchange Related Websites
  • Greenville Host Green Web Hosting Examine Greenville Host Green Web Hosting Examine There's lots of speak on the net and in the so-called actual world about "going green." Although it is straightforward to understand the will need in sectors including energy and construction, the concept of heading green in cyberspace can be a little more challenging......
  • How To Find Inexpensive Web Hosting There are many reasons that you might decided you would like to have web hosting. If you feel that you want to have a web site, the first thing that you need to do is find yourself some web hosting. There are many ways that you can find this without......
  • How To Adjust Web Hosting Devoid Of Downtime I am positive that if you are visiting this page, you will be interested in change web hosting. Changing from a single internet hosting provider to a different can cause downtime if you do not have the necessary abilities and experience. Here is a step by step guide to aid......
PDF24    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site