Welcome to WebmasterWorld Guest from 54.205.74.11

Forum Moderators: Ocean10000 & incrediBILL & phranque

.htaccess not working

   
9:20 pm on Mar 3, 2013 (gmt 0)

5+ Year Member



Hi,

Im back again with yet another issue.

I have created a simple .htaccess file in the root as detailed below:

/var/www/.htaccess

The contents are as follows:



AuthUserFile /var/access/.htpasswd
AuthName "Please Log In"
AuthType Basic

<files ".htaccess">
order allow,deny
deny from all
</files>



My .htpasswd is located in /var/access/.htpassword and that has the automated lines added when you issue the htpasswd -c command in linux.

For some unknown reason to me the file is not block access to that directory and I have no idea why?

All of the sub directories are still visible too.

Any ideas?
9:30 pm on Mar 3, 2013 (gmt 0)

5+ Year Member



Cancel that I resolved it.

The apache I misspelled the .htaccess ;)
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month