require valid-user an .htaccess

I work for a small online company, our system currently went a restore due to errors. We copied all the files directly over an everything is working except for the password protection on one file.

What the problem is if we .htaccess a folder, instead of the folder being passworded you just get directed straight to a "page can not be displayed" error. I commented all lines out an added them back in one by one to find out the problem only occurs when we use "require valid-user"

my .htaccess file is

AuthName "Web Admin"
AuthType Basic
AuthUserFile /home/sites/site3/web/users/.htpasswd
require valid-user

When the require line is taken out the pages load fine just don't ask for a user name or password.

we use the same code on other sites .htaccess files which are running on the same server and it works fine, its just for this one site. Been scratching my head for hours trying to figure out why this one doens't work an others do.

Any help anyone may have to offer would be GREATLY appreiacted

 

 

 

 

Top