Welcome to The-Server-admin.com the place were administrators can get the needed skills for the server room.




.htaccess File

 

.htaccess File

A buddy was asking me about .htaccess files so here you go.

A .htaccess or hypertext access file is a directory level configuration file supported by several web servers.
The original purpose of .htaccess was to allow directory access control
. Now of days the .htaccess files can override many other configuration settings with in the website.

Here is an example:

AuthName "SiteName Administration"
AuthUserFile /home/sitename.com/.htpasswd
AuthType basic
Require valid-user
Order deny,allow
Deny from all
Allow from 24\.205\.23\.222
Allow from w3.org htmlhelp.com
Allow from googlebot.com
Satisfy Any

Good Link:

http://httpd.apache.org/docs/1.3/howto/htaccess.html

If there are any questions, please see out forum at http://forum.the-server-admin.com.




 

Powered by Bullraider.com