123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Business >> View Article

Magic Of .htaccess File In Internet Marketing

Profile Picture
By Author: Kiran
Total Articles: 26
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

The .htaccess file and the power it has to improve your website. Although .htaccess is only a file, it can change settings on the servers and allow you to do many different things, the most popular being able to have your own custom 404 error pages. .htaccess isn't difficult to use and is really just made up of a few simple instructions in a text file. If your server runs Unix or Linux, or any version of the Apache web server it will support .htaccess, although your host may not allow you to use it.

There is a huge range of things .htaccess can do including:

password protecting folders, redirecting users automatically, custom error pages, changing your file extensions, banning users with certian IP addresses, only allowing users with certain IP addresses, stopping directory listings and using a different file as the index file.

Custom Error Pages

The first use of the .htaccess file which will cover is custom error pages. These will allow you to have your own, personal error pages (for example when a file is not found) instead of using your host's error pages or having no page.

This will make ...
... your site seem much more professional in the unlikely event of an error. It will also allow you to create scripts to notify you if there is an error (for example I use a PHP script on Free Webmaster Help to automatically e-mail me when a page is not found).

You can use custom error pages for any error as long as you know its number (like 404 for page not found) by adding the following to your .htaccess file: ErrorDocument errornumber /file.html If the file is not in the root directory of your site, you just need to put the path to it: ErrorDocument 500 /errorpages/500.html

These are some of the most common errors:

401 - Authorization Required

400 - Bad request

403 - Forbidden

500 - Internal Server Error

404 - Wrong page

Then, all you need to do is to create a file to display when the error happens and upload it and the .htaccess file.

Written by


Internet Marketing Company | Internet Marketing :
Toputop.com

Marketing Agency : Dotndot.com

Total Views: 72Word Count: 356See All articles From Author

Add Comment

Business Articles

1. Why Should You Choose Professional Tax Consultants In Dubai?
Author: Maple Leaf Auditing Taxation and Accounting

2. Sell Your Old Computers, Copper & Electronic Scrap In Hyderabad At Best Prices
Author: Scrap Points

3. Scrap Buyers In Hyderabad – Ac Scrap Buyers And Aluminium Scrap Buyers
Author: Scrap Points

4. Need Audiotech Or Trade Show Services In Nyc?
Author: Speedy Event Rentals

5. Sahuarita Locksmith
Author: Rory Klippenger

6. Wet Scrubber Technology For The Best Experience
Author: Tianjin Huabang New Materials Technology Co., Ltd

7. Hotel Booking Api Worldwide
Author: Tejaswi

8. Need Webcasting Or Video Editing For Your Nyc Event?
Author: Big Apple Event AV

9. Need Audiotech Support In Nyc Or Hiring Ipads?
Author: Unknown

10. Why Choosing The Best Cleaning Machines Company Matters For Your Business
Author: Steve Smith

11. Usa Certificate Attestation In Dubai
Author: World Attestation

12. Trusted Scrap Buyers In Hyderabad For Copper, Battery And Aluminium Scrap
Author: Scrap Buyers Bazar

13. Trusted Computer Scrap Buyers, Ac Scrap Buyers And Scrap Buyers In Hyderabad
Author: Scrap Buyers Bazar

14. Top Brass, Computer & Ac Scrap Buyers In Hyderabad – Best Prices & Doorstep Pickup Services
Author: Scrap Buyer Hyd

15. Scrap Buyers In Hyderabad: Your Trusted Guide To Scrap Dealers And Aluminum Scrap Buyers
Author: Scrap Buyer Hyd

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: