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/
Just because you are a small business with an even... Read More
Every now and then, I receive a link exchange request... Read More
If there's one thing that I've learnt so far, it's... Read More
If you are going to be placing ads on your... Read More
Are you in a dilemma whether to create a mini... Read More
They may look cutting edge, but if you want a... Read More
Square buttons, round buttons, flashy buttons ? will they match... Read More
Choosing the right typeface for your website copy is important,... Read More
Being a writer, when I was asked to do some... Read More
What pages need to be included on your website? The... Read More
The internet is full of web design companies pleading for... Read More
You've designed your logo, and you're ready to print your... Read More
As search engine marketers, we spend an enormous amount of... Read More
Novice and professional designers alike ? you may probably be... Read More
The concept of web designing based on the nature and... Read More
As a webmaster you already know how important it is... Read More
Did you know that many folks make "buying decisions" when... Read More
Selling on the internet is a challenge. There is no... Read More
1. Lack of overall strategy and clear definition of success:Most... Read More
Read the title of this article over a couple of... Read More
It has been said that the best online sales copy... Read More
Probably you know someone who has created a web site... Read More
Don't mess with those links! When you're designing your site,... Read More
Content is undoubtedly the most important element of a website.... Read More
Many people today are tired of the Microsoft software that... Read More
group transportation logistics management Highland ..Web sites that feature products ? especially furniture or other... Read More
A web site builder can be a real life saver... Read More
Are you serious about get this website done fast and... Read More
To explain my point I need to first confuse the... Read More
It is a well-known fact that a successful business depends... Read More
Reading on the web is different than reading in all... Read More
Never put form over function. Why? Because it's crucial that... Read More
Flash is a powerful technology that can help you create... Read More
Being a writer, when I was asked to do some... Read More
Projecting a professional image is paramount to your website's success.... Read More
You have only 10 seconds to impress your potential buyer.... Read More
Know what you wantMake sure you know why you... Read More
There are plenty of web sites out there in which... Read More
We can't emphasize enough the importance of including keyword-rich content... Read More
If your website is falling through the cracks, the chances... Read More
Do you have a website? If so, you need an... Read More
Everything you say and do says something about you. This... Read More
This article gives free tips on how to find a... Read More
Have you ever thought about the real stories behind all... Read More
It seems more and more webmasters are using CSS for... Read More
"Oh, my eyes, my eyes! What an eye sore. Quick,... Read More
Here are 10 dynamic website advertising tactics to super-charge your... Read More
How often, men, have you come home to find the... Read More
If you were like me and you have just started... Read More
1. What's the purpose?The most fundamental thing to do before... Read More
Web Design |