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/
Do you want to use unsafe web colors without offending... Read More
What dollar amount does your web site contribute to this... Read More
A web site builder can be a real life saver... Read More
Ecommerce is just exploding right now on the Net. More... Read More
I taught myself HTML back in the mid-nineties and was... Read More
You just created a new web site but want to... Read More
The ability to create simple, attractive and functional web pages... Read More
Are you looking to create the perfect website? A complete... Read More
When creating an e-cover the what's the first thought that... Read More
10 Ways Web Site Text Can Impact Your Reader's Buying... Read More
When designing elements for your webpage, you will often be... Read More
There are lots of websites out there that do little... Read More
So you want to build a website here I will... Read More
The following list of websites is the best compilation of... Read More
As the Internet blooms at an alarming rate, so as... Read More
In this article you will find the parallel between two... Read More
I'm not a professional web site designer and openly admit... Read More
You have only 10 seconds to impress your potential buyer.... Read More
Regardless whether you manage a small business, charitable organization, or... Read More
~A man [woman] is a success if he [she] gets... Read More
1. Assemble a web site development plan that is integrated... Read More
Yes, in a world that is obsessed with makeover madness,... Read More
Novice and professional designers alike ? you may probably be... Read More
A search engine robot actually reads the wording on your... Read More
Remember your vision for your company and the brand or... Read More
reliable maid service Winnetka ..What is the relationship between Marketing and Web designing? How... Read More
Daily article:One of the most debated subject among webmasters is... Read More
Clutter: Too much noise, too much text, and too little... Read More
A website should firstly be searched out by visitors before... Read More
A "template" is simply a design format which you can... Read More
1. Loading time:try to be below 20kbless number of imagesspecify... Read More
Don't mess with those links! When you're designing your site,... Read More
A client asked me, at what point do you change... Read More
You spend time and money promoting your website; but what... Read More
Whether you're giving a critical sales presentation to a client,... Read More
Every action has a beginning phase where you launch your... Read More
Unless you are an inventor, most likely you are selling... Read More
Making your site accessible means making it available to be... Read More
You just created a new web site but want to... Read More
Your website design may be affecting your sales in ways... Read More
The following list of websites is the best compilation of... Read More
Audio can provide an added dimension to your site. It... Read More
When considering whether or not to incorporate Flash into your... Read More
Let's face it; the line from A Field of Dreams... Read More
There are often many mistakes encountered when creating a webpage... Read More
Have you ever thought about the real stories behind all... Read More
Your web site is the key to your success on... Read More
If you have a web site to which people pay... Read More
Let's face it. Buying products and services from the Internet... Read More
In the of-line marketing world it is all about trying... Read More
Web Design |