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/
When JV Media Design was formed, the year was 1995... Read More
Easy That's how you'd like life to be, right? Especially... Read More
As part of your event planning you should seriously consider... Read More
Designing your website means you have to be creative, plan... Read More
Ever browse across a website that took ten million years... Read More
In the early years of the internet the actual design... Read More
What Will My Site Do?This is the first of eight... Read More
In this article you will find the parallel between two... Read More
You've got a concept for a business, are excited about... Read More
We have all seen websites showcasing their testimonials either spread... Read More
We've all read the countless publications about effective web site... Read More
The ability to create simple, attractive and functional web pages... Read More
Websites that have multiple pages usually have a Frequently Asked... Read More
Why is the quality of your text layout and design... Read More
In learning webpage design, I encountered many problems that took... Read More
Website Design Usability Tips1. Getting to know about audience membersYou... Read More
I do site reviews. Needless to say, I see a... Read More
Why your site should be developed with CSS and semantic... Read More
As web designer my self, I have had the unfortunate... Read More
If there's one thing that most web site developers can... Read More
Don't just put your slogan in the title tag when... Read More
To explain my point I need to first confuse the... Read More
Don't mess with those links! When you're designing your site,... Read More
Remember your vision for your company and the brand or... Read More
Mechanical spiders have to eat. In fact, they usually have... Read More
taxi o'hare Auburn ..The icons in an application are the soul of the... Read More
Do you want to use unsafe web colors without offending... Read More
Many people today are tired of the Microsoft software that... Read More
Every now and then, I receive a link exchange request... Read More
Unarguably, the most important part of your website is content.... Read More
You have identified that to have an internet prescence would... Read More
Building your first website can be very frustrating. It looks... Read More
There are literally thousands of different options, styles and formats... Read More
Whether you're hiring a designer who has created 10 sites... Read More
In my last article entitled, Maximizing The True Value Of... Read More
Out there in the WWW there are thousands sites using... Read More
A successful website is something that everyone venturing into the... Read More
A web site builder can be a real life saver... Read More
No question about it, web design is an art. Finding... Read More
About two years ago, I had a go at commercial... Read More
There is no doubt that reprint articles can serve lots... Read More
Drop Capitals are frequently used in many newspapers, books and... Read More
Argh, where's the contact button?! Believe it or not, some... Read More
It seems that almost every Tom Dick and Harry do... Read More
One of the biggest problems with Web sites is that... Read More
An application is not ready for use unless you have... Read More
Geared Up with a website and lots of energy to... Read More
Before I discovered the concept of Web site templates, I... Read More
On the internet we don't deal with face to face... Read More
Over the course of the last decade, the Internet has... Read More
Web Design |