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/
They may look cutting edge, but if you want a... Read More
A professionally presented business website is a powerful and essential... Read More
It is a well-known fact that a successful business depends... Read More
If you have a business, big or small you may... Read More
Creating your own website can be fun and easy, as... Read More
If you are one of those who wonder how people... Read More
Flash is a powerful technology that can help you create... Read More
No matter what product or service you're promoting, unless you... Read More
Creating your own website is actually easy in today's world... Read More
1. Web site File Structure / File NamingMost search engines... Read More
Did you know that many folks make "buying decisions" when... Read More
There are often many mistakes encountered when creating a webpage... Read More
Have you seen Jesse James on the... Read More
You've thought about it and you're ready to go. You're... Read More
Website design is a very competitive area and there is... Read More
Every action has a beginning phase where you launch your... Read More
One of the biggest problems with Web sites is that... Read More
You know that I'm always extolling the virtues of an... Read More
Since I'm a web designer, I have a tendency to... Read More
There can be zillions of reasons why your visitors return... Read More
When considering whether or not to incorporate Flash into your... Read More
The importance of choosing your website keywords carefully is very... Read More
QUESTION: My business is very small, just me and... Read More
Designing a website is hard job, and requires you to... Read More
The title tags of your web pages are more important... Read More
limousine airport Itasca ..It's a fact, Page Not Found, known as a 404... Read More
~A man [woman] is a success if he [she] gets... Read More
ASP.NET is a new programming framework from Microsoft for developing... Read More
Let's look at what your user wants to see at... Read More
The ability to create simple, attractive and functional web pages... Read More
Web Site Awards are given from other sites to reward... Read More
One of the simplest things you can do to give... Read More
Navigation must be simple. Since it's the backbone of your... Read More
Do use a consistent look and feel Your site should... Read More
This article is the result of a conversation I had... Read More
By following feng shui guidelines and techniques, you can build... Read More
Being a writer, when I was asked to do some... Read More
When your web site sells more than a dozen items,... Read More
What pages need to be included on your website? The... Read More
There is nothing wrong with making your own website if... Read More
Content is the most important part of any website.The Internet... Read More
A well designed web site is great to have, but... Read More
This article gives free tips on how to find a... Read More
One visit does not make a sale. Be sure to... Read More
I ask myself that question about once a month.My website... Read More
Choosing a web designer can seem like a daunting task.... Read More
Effective navigation stands out. It's clear, obvious, and highly visible.You'll... Read More
The internet is full of web design companies pleading for... Read More
If you've a website that is not generating a lot... Read More
Over the course of the last decade, the Internet has... Read More
Web Design |