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/
If you are going to have a web presence for... Read More
Most of us know that we need to advertise our... Read More
When I surf the Net, I often see web sites... Read More
In learning webpage design, I encountered many problems that took... Read More
Almost everything is available on the web? products, services, e-books,... Read More
Being a writer, when I was asked to do some... Read More
Websites that have multiple pages usually have a Frequently Asked... Read More
A successful website is something that everyone venturing into the... Read More
Wether you design your business brochures, flyers, web page, or... Read More
Now that you have decided that it is time to... Read More
These days, it seems that everyone has a website. Unfortunately,... Read More
How many times have you clicked on a website only... Read More
Novice and professional graphic designers, we are aware that you... Read More
It is common sense.The more time people spend at your... Read More
So you're on the computer, as usual. Your eyes are... Read More
There are often many mistakes encountered when creating a webpage... Read More
Every action has a beginning phase where you launch your... Read More
If you are one of those who wonder how people... Read More
Does your website make a good first impression? Is the... Read More
~A man [woman] is a success if he [she] gets... Read More
CNN.com's designers have gone out of their way to make... Read More
The landing page or entry page of your visitors is... Read More
The Internet is a relatively new medium. What works for... Read More
Hire a designer or a programmer for your website is... Read More
Sin #5Poor Spelling And GrammarWe all make mistakes when we... Read More
Antigo wedding limo ..Out there in the WWW there are thousands sites using... Read More
There's no doubt about it - the first page your... Read More
Just about every list of the "Top 10 Web Design... Read More
Every day internet marketers are inundated with the latest fad... Read More
How often, men, have you come home to find the... Read More
Content is king. Without content your website is an empty... Read More
In the of-line marketing world it is all about trying... Read More
When you develop a sales brochure, you have a mental... Read More
You may not bother with html validation or writing simple... Read More
Sin #5Poor Spelling And GrammarWe all make mistakes when we... Read More
1. Don't load your web site with a lot of... Read More
Projecting a professional image is paramount to your website's success.... Read More
An application is not ready for use unless you have... Read More
A search engine robot actually reads the wording on your... Read More
The HTML editor is usually a webpage design software that... Read More
Your web site is the key to your success on... Read More
Creating your own website is actually easy in today's world... Read More
In this article I will give a few tips of... Read More
This is my second article on maximising web site viewability.... Read More
If you're not getting a lot of traffic to your... Read More
The .htaccess file is a control file located in your... Read More
I'm sure you've all heard the saying 'Build it and... Read More
When you begin the design of your Web site, one... Read More
Q: Should I build and maintain my business Web site... Read More
If you'd like to create/maintain a website, having some HTML... Read More
Web Design |