Jump to content

htaccess is not working under the protection code admin folder


masteryoda

Recommended Posts

To ask for a password to the admin directory, I added the following code in the htaccess file.

AuthName "protected"
AuthType Basic
AuthUserFile /home/domainname/public_html/xxxadminxxx/.htpasswd
Require valid-user

but if i add htaccess in the root directory it just works.
Whereas the admin is just under the folder, I am adding it to htaccess and it does not work.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...