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/
Want to know what the worst thing to say on... Read More
You may not believe it, but people still judge things... Read More
Well it is not Elvis, that's for sure.I am a... Read More
The ability to create simple, attractive and functional web pages... Read More
In today's world, a web site is virtually mandatory for... Read More
FIRST IMPRESSIONS. First impressions often leave lasting impressions. Impressions... Read More
Your web site should be-visitor friendly to navigatesearch engine friendly... Read More
Effective navigation stands out. It's clear, obvious, and highly visible.You'll... Read More
The internet is full of web design companies pleading for... Read More
Writing for your web site is not the same as... Read More
Designing your website can be a difficult task especially if... Read More
Don't mess with those links! When you're designing your site,... Read More
If you are familiar with my work, then you have... Read More
A question we frequently get asked is, "how do we... Read More
Website design firms come in all shapes and sizes.When choosing... Read More
I've seen articles (and websites) that suggest you can buy... Read More
One of the most frequent questions I get asked about... Read More
There are plenty of Drupal Modules that you can install... Read More
If you are designing a web site for which the... Read More
Ever wonder how HTML color codes are put together? For... Read More
There are lots of websites out there that do little... Read More
Before deciding on which web design company to choose, you... Read More
Read the title of this article over a couple of... Read More
Are you building your website? If so, STOP! Take a... Read More
You're all ready to get started creating your web presence... Read More
Green Bay Hummer H2 SUV rentals ..Geared Up with a website and lots of energy to... Read More
QUESTION: My business is very small, just me and... Read More
Good websites stand out from the masses of boring, hard... Read More
We can't emphasize enough the importance of including keyword-rich content... Read More
The effective design is this one, which is maximum simplified,... Read More
With so many different configurations internet users have their computers... Read More
Out there in the WWW there are thousands sites using... Read More
Creating your own website is actually easy in today's world... Read More
It's been said again and again, when it comes to... Read More
If you need a web designer, but have no clue... Read More
STEP 1:Do your homeworkPlan and think about your content. Think... Read More
One of the biggest problems with Web sites is that... Read More
Congratulations! You've got a brand new site and it's doing... Read More
How many of the visitors to your web site take... Read More
Any design on a web application involves the effective input... Read More
One of the most popular methods of traffic generation is... Read More
I ask myself that question about once a month.My website... Read More
Now that you have decided that it is time to... Read More
It starts off simply; a few HTML pages, a few... Read More
Any kid, and their grandmother too, can make a webpage.... Read More
You have an idea for a website and you are... Read More
FACT: 30 to 60% of visitors tend to drop off... Read More
A long, long time ago? In a galaxy far, far... Read More
You just created a new web site but want to... Read More
So, what's in a website design anyway? And, how do... Read More
Web Design |