Helpful Information
Category: Apache configuration
Htaccess problems

Hello Everyone!

Not sure if this is the right place to post if not please move me.

Okay I have a problem with htaccess.
I place the below in a file called - .htaccess
AuthUserFile .htpasswd
AuthGroupFile /dev/null
AuthName "Cigarette Lounge"
AuthType Basic

<Limit GET POST>
require valid-user

It pertects the whole site!
I placed the htaccess file in a single folder. The thing is I have done this hundreds of times and this has worked. But for some reason it is trying to password protect the whole site ALL FOLDERS.

It does not make any sense. Can someone please help me.

Any suggestions are welcome.

if you put your .htaccess file in a folder, it applies what it does to that folder and all sub folders. So if you place it in the root directory it will affect the entire site.


Yea, But thats what is very weird, The .htaccess file is in a folder all its own, the root folder (main folder) does not have any htaccess in it.

Anyways I figured it out, the administrature put like global settings on that folder making it have effect on the entire site. Once we removed that it works perfectly.

Thanks for your relpy scroots :D

privacy (GDPR)