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/
How many times have you clicked on a website only... Read More
First impressions are extremely important if you hope to do... Read More
Reading on the web is different than reading in all... Read More
Don't knock it; "Keep It Simple, Stupid" is a great... Read More
Web design is a very competitive area and there is... Read More
Traffic to a site can be a blessing or a... Read More
You've got a concept for a business, are excited about... Read More
Designing your website can be a difficult task especially if... Read More
When your company built its website, did you think about... Read More
Your web site should always adhere to standards!A professional web... Read More
Remember the famous line from the movie Field of Dreams,... Read More
Websites, there are literally billions of them out there in... Read More
Whether you're hiring a designer who has created 10 sites... Read More
Easy navigation and usability are one of the most important... Read More
Before you start worrying about marketing your website on the... Read More
The great debate: how much copy you should have on... Read More
1. Don't load your web site with a lot of... Read More
You have only 10 seconds to impress your potential buyer.... Read More
This article gives free tips on how to find a... Read More
When it comes to marketing your website, you should really... Read More
I want to give you a free web page template... Read More
In the early years of the internet the actual design... Read More
Just what is web copy? Some people think that web... Read More
What do the key words represent?Key words - these are... Read More
If there's one thing that most web site developers can... Read More
Wood Dale limo ..If you own a web site or if you are... Read More
Daily article:One of the most debated subject among webmasters is... Read More
If you're running a website or online business, your number... Read More
One of the most popular methods of traffic generation is... Read More
I get the occasional web design lead from my website.... Read More
Designing your own successful web page can seem difficult and... Read More
A well designed web site is great to have, but... Read More
As search engine marketers, we spend an enormous amount of... Read More
This is a two-part article about creating a web site... Read More
If your are a new web designer, you may face... Read More
What pages need to be included on your website? The... Read More
The Psychology of ColorAre you using the best colors for... Read More
Getting a customer is not easy.Getting a visitor to decide... Read More
It has been said that the best online sales copy... Read More
From my personal experience of around two year as home... Read More
To create professional websites is not an easy task by... Read More
Being a writer, when I was asked to do some... Read More
Building your first website can be very frustrating. It looks... Read More
There is nothing wrong with making your own website if... Read More
We can't emphasize enough the importance of including keyword-rich content... Read More
Why your site should be developed with CSS and semantic... Read More
Square buttons, round buttons, flashy buttons ? will they match... Read More
Color is everywhere and conveys a message even if we... Read More
What is a Website Template?Many smart and savvy businesses are... Read More
Dear web site visitor.I can't tell you how glad I... Read More
Web Design |