The .htaccess file is a control file located in your webservers directory. This file is a very powerful file that can control access to certain files, restrict access to files, forward people in the event of errors, and many more useful features for webmasters!
One of the most embarrassing things for a webmaster is to have a website with dead links, bad URLs, and error messages when the user surfs through your website. Using the .htaccess file you can help reduce how noticeable those errors are by quickly moving the user to a correct working location. This method of course doesn't correct the underlying problem with your website, however it does help to keep your website looking more professional.
Common error codes that you want to try to hide from the user:
400 - Bad Request
401 - Authorization Required
403 - Forbidden
404 - Page Not Found
500 - Internal Server Error
501 - Not Implemented
The biggest and most common error by far is the 404 Error (Page not found), but all of these can be embarrassing and troublesome to webmasters. If an error occurs on your website you don't want to lose that user. You may not be able to provide them with a link to the page they wanted, but you might get another chance if you redirect them to another page within your website.
Syntax for .htaccess file:
ErrorDocument ### index.php -- Example of format
ErrorDocument 404 /index.php -- Working example
In the second example, should a user request a page that no longer exists on your website, they will automatically have the index.php file loaded. This can be done for all of the error codes listed above and will help to hide and glaring mistakes in your website.
As I mentioned before, this is not a fix action for your website, but simply a mask. It's very important to review your website logs and look for error codes. The goal is to have a good working website afterall!
Ken Dennis
http://KenDennis-RSS.homeip.net/
Have you put a lot of effort, time, and money... Read More
Every day internet marketers are inundated with the latest fad... Read More
What dollar amount does your web site contribute to this... Read More
As web designer my self, I have had the unfortunate... Read More
See, works every time. Seriously now, for some reason people... Read More
Copyright 2005 Robert EvansSetting yourself up to earn a steady... Read More
I get the occasional web design lead from my website.... Read More
The Internet is a relatively new medium. What works for... Read More
Your web site should be-visitor friendly to navigatesearch engine friendly... Read More
If one more business owner tells me their website sucks... Read More
The ability to create simple, attractive and functional web pages... Read More
There are two camps when it comes to flash web... Read More
A professionally presented business website is a powerful and essential... Read More
Selling on the internet is a challenge. There is no... Read More
Most of us know that we need to advertise our... Read More
Public domain gives you a head start creating ebooks, ecourses,... Read More
As part of your event planning you should seriously consider... Read More
When it comes to marketing your website, you should really... Read More
1. Repackage your web site content in to different products... Read More
Ever wonder how HTML color codes are put together? For... Read More
We've all seen them. Poorly designed web sites that make... Read More
This is the second part of a two-part article about... Read More
One of the simplest things you can do to give... Read More
For many webmasters the title of my article may seem... Read More
In the early years of the internet the actual design... Read More
I am constantly bombarded with all sorts of advertisements, single-page... Read More
I always have people asking me if I know of... Read More
Flash is a powerful technology that can help you create... Read More
Imagine you're going on a blind date. You've heard wonderful... Read More
Since I made the switch 6 months ago to a... Read More
"How to turn "slightly interested" customers into "I've got to... Read More
Do you remember playing with the jack-in-the-box toy as a... Read More
One visit does not make a sale. Be sure to... Read More
Typos, misspellings, hideous grammar, exclamation overkill and run-on sentences all... Read More
Your business website tells a lot about your company. A... Read More
When I surf the Net, I often see web sites... Read More
The top ten fonts for website design might change in... Read More
Writing for your web site is not the same as... Read More
Regardless whether you manage a small business, charitable organization, or... Read More
Not all links are created equal.While all of your links... Read More
It starts off simply; a few HTML pages, a few... Read More
You spend time and money promoting your website; but what... Read More
Choosing the right typeface for your website copy is important,... Read More
Daily article:One of the most debated subject among webmasters is... Read More
Here's a really simple way... any novice can create a... Read More
The most important person that you need to please when... Read More
QUESTION: We promote our web site in all our... Read More
When I purchase something from a web site I first... Read More
No matter what product or service you're promoting, unless you... Read More
Let's face it. Building a web site that browses consistently... Read More
There can be zillions of reasons why your visitors return... Read More
Good websites stand out from the masses of boring, hard... Read More
The icons in an application are the soul of the... Read More
If you have a website, you want your visitors to... Read More
Did you know that many folks make "buying decisions" when... Read More
In the early years of the internet the actual design... Read More
I've written about META tags in the past, and I... Read More
Conventional Wisdom states you should use Sub-Directories to organize your... Read More
The "Wow" factor that accompanied the introduction of streaming media... Read More
Remember the famous line from the movie Field of Dreams,... Read More
ActiveX uses an interesting method for enforcing security ... it... Read More
Well, you've got your product, started your home business, and... Read More
How often, men, have you come home to find the... Read More
(Making Your Graphics Work For You)It's no secret that a... Read More
Web site design has certainly, in the past decade, evolved... Read More
Before doing anything on the technical side, you need some... Read More
Web Design |