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
  • Late afternoon test run of Google Notebook So, I finally got down to about 5 tabs left in my firefox window and decided I could kill it off and restart it without really losing my place so I could get a good look at the Google Notebook plugin. First impression is that it's fairly unobtrusive and is......
  • 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......
  • Creating a redirect page This is one that comes in handy a lot. Like many things in computing there are a number of ways to accomplish this. My favorite though is one fo the simplest. But first, it's probably worth asking why you would want a redirect page and just clarify what I mean.......
Blog Traffic Exchange Related Websites
  • Knowing When to Quit The sad reality is that every year thousands of corporate blog die a quiet death and the only one that notices is their owner. Whether it is through a lack of attention, or simply an inability to find the right audience, keeping a blog alive can be a difficult task.......
  • Using Managed Dedicated Web Hosting Managed dedicated web hosting is for an individual or organization that wants storage and bandwidth with out the restrictions that you get by choosing a free of charge web hosting service.  Should you have a website which you would like to have much more bells and whistles programmed into it,......
  • Choosing Out A Web Hosting Support That Delivers Selecting the best internet host can make or break your web site. That is because the net host need to be regarded as to be the foundation of the web site. In order to possess a longer term web site and make sure you present a good knowledge for your......
www.pdf24.org    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