Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is htaccess?

.htaccess

What is htaccess?

by  Wullie  Posted    (Edited  )
The following explains what htaccess is and typical examples of it's uses.

Many people today host multiple domains on one server. These are called Virtualhosts. This means that all the domains must use the same Web server software installed on that particular server, this presents a huge problem. What if two domains using the same server need different configurations? The solution to this is by using htaccess.

Apache, like any other software, has configuration files. We edit these "global" configuration files to serve as a default for all of the sites hosted on the servers. The .htaccess file (pronounced "h t access") acts as a "local" configuration file so that individual Websites can customise the configuration to suit their needs.

The .htaccess file is an ordinary text file that you can create using Notepad or any text editor and ftp it into your Web root directory. This file will contain the configuration statements (commands) to customize the Apache Web server software for your Website.

A .htaccess file is a very powerful tool. You can use it to set up password-protected directories, change the way Apache responds to certain events, etc. The flip side of that is that you can really mess things up or give unintended access to visitors if you're not careful.

You may want to try out your attempts with .htaccess during low-traffic times on your Website so that any problems can be corrected without affecting too many visitors.

http://httpd.apache.org/docs-2.0/howto/htaccess.html

Hope this helps

Wullie

sales@freshlookdesign.co.uk
www.freshlookdesign.co.uk
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top