.htaccess to Mask Errors on Your Website



Get Web Design Tips and Tricks on mps-web-design.com. .htaccess to Mask Errors on Your Website topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.

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!



Instant Article Submitter. - Amazing Breakthrough Software Stuffs Any Website You Want Full Of Free Targeted Traffic.
15,000 Mb Hosting For $4.95/mo. - 4.95 web hosting, Free domain registration! Free setup and online website builder included.


Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79


More Articles:


1. Lead Capture Pages Explode Your Direct Sales Business Online! By Carrie Lauth
Are you building a direct sales or mlm business online? Using lead capture pages can significantly improve your recruiting results and save you lots of time and money! I have known a few people who earned 5-figure monthly incomes in their mlm businesses and they used lead capture pages for Internet marketing.What is a lead capture page?A lead capture page is similar to a minisite in that it is a simple, one page website that leads your visitor to take ONE action...opting in to your mailing lis…

2. The pros and cons of using Templates for your business website
You see them everywhere, generic templates! Just do a search on Google or Yahoo and see how many sites are selling them and more interestingly, selling the same templates. Let’s look at the pros and cons of using templates.Pros1. Fast development time, they usually contain everything you need minus the content.2. Templates are inexpensive and very cost effective to get a site up.3. Graphics editing can be done in a photo editor like Photoshop.4. They have a clean, uniform look. Keep in mind thes…

3. Do You Make These Common (But Deadly) Website Design Mistakes? By James Burchill
Building a website can be overwhelming, here are some design tips to help keep you on the right path (or is that web?)--- Designing a Frames-based web siteFrames may make the job of maintaining a big web site easy, but search engines hate them. Most search engines cannot find their way through them and end up indexing only the home page. Lose your frames right away. You will start getting positive improvements the moment you redesign your site without frames.--- Having an all-Flash or graphic-…

4. The Topic Of Your Website
The first thing you will have to deal building your website has nothing to do with the web design itself, it's me related to content writing but it must be defined and will effect the rest of your actions. So first of all you need to decide what the topic of your future website is. Topic is very closely connected to another web design issue: keywords. The keywords you select will depend upon the topic you have chosen. When thinking about website topic ask yourself a few questions: What is the g…