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/
Where does a person start when setting up a website?... Read More
Over the years, the internet has grown into a marvelous... Read More
In today's age of fast food and high-speed Internet, a... Read More
What the heck is going on lately? Most internet websites... Read More
Most web designers and web design companies will try to... Read More
If you are going to be placing ads on your... Read More
1. Assemble a web site development plan that is integrated... Read More
A picture is worth a thousand words.And it still is... Read More
CSS is a new option for website designers that have... Read More
From my personal experience of around two year as home... Read More
Getting traffic to your website is not the only factor... Read More
There are lots of websites out there that do little... Read More
Internet Explorer, created by microsoft has been the most popular... Read More
If you are one of those who wonder how people... Read More
When you begin the design of your Web site, one... Read More
Studies done by Jakob Nielson the man touted as the,... Read More
This may comes as a surprise to you but, if... Read More
If you've a website but not making a lot of... Read More
What are websites? Are they sales tools for vendors and... Read More
In this article we will be looking at why you... Read More
Have you put a lot of effort, time, and money... Read More
Argh, where's the contact button?! Believe it or not, some... Read More
As an online Entrepreneur you require a successful website.One that... Read More
There are more than billions of Web Sites, running Online... Read More
Automating your online business is one of the most important... Read More
Granger limo Chicago ..When considering whether or not to incorporate Flash into your... Read More
As of September, Smartads went through what so many have... Read More
If you have a web site to which people pay... Read More
This is a two-part article about creating a web site... Read More
Colors are powerful, and create strong feelings. They can also... Read More
Are you looking to create the perfect website? A complete... Read More
When you begin the design of your Web site, one... Read More
(1) Create a Direct Response Website, with the minimum number... Read More
Selling on the internet is a challenge. There is no... Read More
Geometric designs come in all shapes and sizes? and lines.... Read More
This article gives free tips on how to find a... Read More
Unarguably, the most important part of your website is content.... Read More
As my occupation is that of a proofreader, one of... Read More
As web designer my self, I have had the unfortunate... Read More
CSS is a new option for website designers that have... Read More
Every now and then, I receive a link exchange request... Read More
Don't make a splash!Are you thinking about using a splash... Read More
Drop Capitals are frequently used in many newspapers, books and... Read More
You have probably viewed many Flash-based components while surfing the... Read More
As a web designer, I have a personal interest in... Read More
When creating an e-cover the what's the first thought that... Read More
Many people today are tired of the Microsoft software that... Read More
Avoid these mistakes and your site will be steps ahead... Read More
Dear web site visitor.I can't tell you how glad I... Read More
10 Ways Web Site Text Can Impact Your Reader's Buying... Read More
Web Design |