I have this project where I have a front and back.
My login file is simple if the login and password are in my database then I'm directed to a page in the back, otherwise I can't go.
I login into the backoffice without a problem but I wanted to protect the back and directories.
I'm trying to lock my backoffice with .htaccess
which worked I can't access the backoffice directories but I also can't login anymore.
Here are my two files.
Content of .htaccess
:
Deny from all
Options -Indexes
AuthType Basic
AuthName "KW"
AuthUserFile /.htpasswd
Require valid-user
Content of .passwd
:
root:passwordhere