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/
We've all seen and read product testimonials. They're a very... Read More
Your web site has been up for a few months... Read More
For online businesses with their main goal of selling products,... Read More
We've all surfed the web and seen some awful web... Read More
Choosing a web designer can seem like a daunting task.... Read More
So how do you know when your graphic designer costs... Read More
I get the occasional web design lead from my website.... Read More
The most popular method to build webpages today is to... Read More
Are you looking for somebody to build you a website,... Read More
Copyright 2005 Robert EvansSetting yourself up to earn a steady... Read More
There are more than billions of Web Sites, running Online... Read More
What dollar amount does your web site contribute to this... Read More
When I surf the Net, I often see web sites... Read More
Web Site Awards are given from other sites to reward... Read More
I want to give you a free web page template... Read More
Audio can provide an added dimension to your site. It... Read More
QUESTION: My business is very small, just me and... Read More
In my web surfing adventures, I've found a few site... Read More
One product, one long web page: this kind of web... Read More
If you're running a website or online business, your number... Read More
So you need a website. You are not sure if... Read More
All websites have a homepage. It is the most important... Read More
With so many different configurations internet users have their computers... Read More
What is the relationship between Marketing and Web designing? How... Read More
When you're self-employed, choosing a website designer is a crucial... Read More
home cleaning services Des Plaines ..You're all ready to get started creating your web presence... Read More
I am constantly bombarded with all sorts of advertisements, single-page... Read More
Let's face it. Buying products and services from the Internet... Read More
Some wise human once said "Learn from the mistakes of... Read More
Regardless whether you manage a small business, charitable organization, or... Read More
The way you design your web site affects your visitors'... Read More
Automating your online business is one of the most important... Read More
Do you remember playing with the jack-in-the-box toy as a... Read More
It is common sense.The more time people spend at your... Read More
When it comes to marketing your website, you should really... Read More
There are two important reasons to build your website from... Read More
Are you going to design or redesign new website or... Read More
With so many different configurations internet users have their computers... Read More
Before you start worrying about marketing your website on the... Read More
Internet Explorer, created by microsoft has been the most popular... Read More
Customers will form an opinion of your business as soon... Read More
Before you take a road trip it is usually a... Read More
Whether a business has just got off the ground or... Read More
Just because you are a small business with an even... Read More
I'm not a professional web site designer and openly admit... Read More
One of the challenges of moving a web site up... Read More
I once created a notepad-like editor. It is possible with... Read More
Color is one of the most important but least understood... Read More
In this article you will find the parallel between two... Read More
Have you seen Jesse James on the... Read More
Web Design |