masteryoda Posted March 2, 2020 Share Posted March 2, 2020 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 More sharing options...
MarlexLadag Posted March 4, 2020 Share Posted March 4, 2020 May I know what's in your .htpasswd ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now