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 about every list of the "Top 10 Web Design... Read More
If you are trying to sell a product or service... Read More
Let's face it. Buying products and services from the Internet... Read More
Effective navigation stands out. It's clear, obvious, and highly visible.You'll... Read More
Let me repeat that.."The technology may change, but human nature... Read More
With so many new websites going up, it is hard... Read More
Chris, a new consulting client, asked me to help him... Read More
You've got a concept for a business, are excited about... Read More
You have an idea for a website and you are... Read More
Want to know what the worst thing to say on... Read More
In cascading style sheets you can specify how your web... Read More
If one more business owner tells me their website sucks... Read More
As a web designer, I have a personal interest in... Read More
Easy That's how you'd like life to be, right? Especially... Read More
Daily article:One of the most debated subject among webmasters is... Read More
Owning your own website is a must if you are... Read More
The most important person that you need to please when... Read More
When you're self-employed, choosing a website designer is a crucial... Read More
You've designed your logo, and you're ready to print your... Read More
Building your first website can be very frustrating. It looks... Read More
You have only 10 seconds to impress your potential buyer.... Read More
You have created your custom error page so now all... Read More
Here are a few programs I can't do without. They're... Read More
Many businesses want a simple website where they tell people... Read More
Don't mess with those links! When you're designing your site,... Read More
They may look cutting edge, but if you want a... Read More
Building a website can be overwhelming, here are some design... Read More
Content is the most important part of any website.The Internet... Read More
It's a fact, Page Not Found, known as a 404... Read More
We all want high impact graphics for our Web sites... Read More
If you are familiar with my work, then you have... Read More
So you want to build a website here I will... Read More
Automating your online business is one of the most important... Read More
New Web sites are springing up online by the millions.... Read More
When I purchase something from a web site I first... Read More
Before you start worrying about marketing your website on the... Read More
The top ten fonts for website design might change in... Read More
They may look cutting edge, but if you want a... Read More
One visit does not make a sale. Be sure to... Read More
Why your site should be developed with CSS and semantic... Read More
If you need a web designer, but have no clue... Read More
In this era of ultra-sophisticated internet marketing and web design,... Read More
Public domain gives you a head start creating ebooks, ecourses,... Read More
Back to basics. Forget funky design, good copywriting is the... Read More
Are you going to design or redesign new website or... Read More
Out there in the WWW there are thousands sites using... Read More
You've come up with a great product. You've got the... Read More
The object of search engines is to give their visitors... Read More
Have you ever thought about the real stories behind all... Read More
Flash is a powerful technology that can help you create... Read More
If you've just finished building your new website (or revamping... Read More
The problem with designing your site as a graphic, is... Read More
Your home page is the most important page of your... Read More
Do your web pages, sales letters or personal presentations include... Read More
Building a website can be overwhelming, here are some design... Read More
Ever wonder how HTML color codes are put together? For... Read More
When you design a website how do you start ?Do... Read More
Just because you are a small business with an even... Read More
Novice and professional graphic designers, we are aware that you... Read More
Ecommerce is just exploding right now on the Net. More... Read More
Let's face it. Buying products and services from the Internet... Read More
Copyright 2005 Robert EvansSetting yourself up to earn a steady... Read More
From my personal experience of around two year as home... Read More
The following list of websites is the best compilation of... Read More
It starts off simply; a few HTML pages, a few... Read More
You have created your custom error page so now all... Read More
Web Design |