Difference between revisions of ".htaccess"
From Hostek.com Wiki
(→Can I use a .htaccess file to password protect a directory?) |
|||
Line 1: | Line 1: | ||
==Can I use a .htaccess file to password protect a directory?== | ==Can I use a .htaccess file to password protect a directory?== | ||
Yes, on our LINUX servers you can use a .htaccess file to password protect a directory. | Yes, on our LINUX servers you can use a .htaccess file to password protect a directory. | ||
+ | |||
+ | The code to perform this is: | ||
+ | <pre> | ||
+ | AuthUserFile /usr/local/you/safedir/.htpasswd | ||
+ | AuthGroupFile /dev/null | ||
+ | AuthName EnterPassword | ||
+ | AuthType Basic | ||
+ | |||
+ | require user wsabstract | ||
+ | </pre> | ||
+ | |||
+ | Change the File directory to the directory listed in your File Manager. | ||
==Enabling Case Insensitive URLs for my Linux site== | ==Enabling Case Insensitive URLs for my Linux site== |
Revision as of 22:03, 21 December 2013
Can I use a .htaccess file to password protect a directory?
Yes, on our LINUX servers you can use a .htaccess file to password protect a directory.
The code to perform this is:
AuthUserFile /usr/local/you/safedir/.htpasswd AuthGroupFile /dev/null AuthName EnterPassword AuthType Basic require user wsabstract
Change the File directory to the directory listed in your File Manager.
Enabling Case Insensitive URLs for my Linux site
Add the following to your .htaccess file:
CheckSpelling on