.htaccess

From Hostek.com Wiki
Revision as of 22:03, 21 December 2013 by Coryme (Talk | contribs) (Can I use a .htaccess file to password protect a directory?)

Jump to: navigation, search

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