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/
A few years ago a lot of websites utilized frame... Read More
Developing a software application is not easy at all; apart... Read More
Before deciding on which web design company to choose, you... Read More
When creating an e-cover the what's the first thought that... Read More
I see a lot of mistakes, but here are the... Read More
If you've a website that is not generating a lot... Read More
Square buttons, round buttons, flashy buttons ? will they match... Read More
Do you know why the majority of people use the... Read More
I taught myself HTML back in the mid-nineties and was... Read More
Selling on the internet is a challenge. There is no... Read More
Dear web site visitor.I can't tell you how glad I... Read More
From my personal experience of around two year as home... Read More
Web sites that feature products ? especially furniture or other... Read More
Unarguably, the most important part of your website is content.... Read More
We've all read the countless publications about effective web site... Read More
Here are 10 dynamic website advertising tactics to super-charge your... Read More
The icons in an application are the soul of the... Read More
Every day internet marketers are inundated with the latest fad... Read More
I do site reviews. Needless to say, I see a... Read More
Before you take a road trip it is usually a... Read More
Whether you're giving a critical sales presentation to a client,... Read More
Are you a student of graphic design? If you have... Read More
Are you building a direct sales or mlm business online?... Read More
When I purchase something from a web site I first... Read More
When you're self-employed, choosing a website designer is a crucial... Read More
bedroom cleaning professionals Arlington Heights ...Here are 10 dynamic website advertising tactics to super-charge your... Read More
The "Wow" factor that accompanied the introduction of streaming media... Read More
A Double Ad Tracker is an Ad-Tracker that points to... Read More
Does your website make a good first impression? Is the... Read More
Well it is not Elvis, that's for sure.I am a... Read More
So your web site's online and you've got high rankings... Read More
Getting traffic to your website is not the only factor... Read More
If you own a web site or if you are... Read More
Web usability is perhaps the most important factor in any... Read More
A picture is worth a thousand words.And it still is... Read More
You have only 10 seconds to impress your potential buyer.... Read More
All websites have a homepage. It is the most important... Read More
Do your web pages, sales letters or personal presentations include... Read More
There are literally thousands of different options, styles and formats... Read More
If you've a website that is not generating a lot... Read More
Daily article:One of the most debated subject among webmasters is... Read More
First you need original content. Content is the heart beat... Read More
Projecting a professional image is paramount to your website's success.... Read More
**How Colors are Used in web design:**Demarcates screen elements into... Read More
Before you take a road trip it is usually a... Read More
About two years ago, I had a go at commercial... Read More
Then it was a choice among crayons, paints and palettes... Read More
I have written before about long sales copy on the... Read More
You've made your website, added a great title and keywords... Read More
In my last article entitled, Maximizing The True Value Of... Read More
Web Design |