One on One Internet - It's Your Life...It's Your Business...We're One on One Internet
Support
 
questions?
Call us toll-free

 

Referral Rewards
One on One Internet gave me all the help I needed to set up a site for my real estate brokerage. I didn’t know it could be this easy!

 

/ support / support center / .htaccess

 

.htaccess


Important Note: Do not edit the .htaccess file if you are using MS Frontpage! Frontpage uses the .htaccess file, and editing it may cause errors in your configuration.


What is .htaccess?


The .htaccess file can be placed in one or more of your /home/$user/$domain-www subdirectories. Among other things, this file can be used to restrict access to other files and web pages.

When a request for a web page is made, the web server first checks for an .htaccess file. The server begins this check by looking for .htaccess in the root of the current web directory, and on down the directory tree until it reaches the directory where the requested file resides. Since the placement of the .htaccess file determines when it is executed, this fact can be used to restrict access only in certain subdirectories.

Functions Restrict access to directories using passwords.

Redirect hits onto another webpage.

Control and set the messages generated for various error conditions.

Edit Mime-types.

Activate and deactivate various server features.

To create an .htaccess file, make a text file as described below, name it .htaccess and upload it.

Except for the first feature, described below, the following features will only work for a .htaccess file placed in /home/$user/$domain-www. Add all features you want to the same file.


Restricting Access: Password Protection


The directory you want protected must have a .htaccess file in it that looks like the following (do not put the comments in the actual .htaccess file [comments begin with #]):

AuthUserFile /home/$user/.passwd AuthGroupFile /home/$user/.group AuthName "Protected Space"

AuthType Basic require group $users #users, is the group of users that you give access to #require user $user #if there is only one user in the group, you can substitute this line; remove the #.

 


solutions sign up support resellers about us
© 2007, Hosting Ventures, LLC. , All Rights Reserved.