INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS
Come Join Us!
Are you a
Computer / IT professional?
Join Tek-Tips now!
- Talk With Other Members
- Be Notified Of Responses
To Your Posts
- Keyword Search
- One-Click Access To Your
- Automated Signatures
On Your Posts
- Best Of All, It's Free!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.
Partner With Us!
"Best Of Breed" Forums Add Stickiness To Your Site
(Download This Button Today!)
"...Congratulations for your great site. This site helped me more than university..."
Where in the world do Tek-Tips members come from?
What is htaccess?
Posted: 4 May 02 (Edited 2 Aug 03)
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.
Hope this helps
Back to Apache: HTTP Server FAQ Index
Back to Apache: HTTP Server Forum
Join Tek-Tips® Today!
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
- Talk To Other Members
- Notification Of Responses To Questions
- Favorite Forums One Click Access
- Keyword Search Of All Posts, And More...
Register now while it's still free!
Already a member? Close this window and log in.
Join Us Close