0
|
Hello Sid, I'm sorry you're having trouble password protecting your directory. I'm happy to help you with that. cPanel offers the option to password protect a directory and will write to the .htaccess file in order to accomplish that. For step-by-step instructions, please see How to Password Protect a Directory Please let us know if you have any questions or need further assistance, we're always happy to help. Thank you, Christi N |
Hello, i have a vps (centos) and .htpasswd working as expected but not in webhostinghub. I want to protect my wp-admin folder and this is the .htaccess file:
AuthType Basic AuthName "Please enter your username and password:" AuthUserFile path/to/.htpasswd/file Require valid-user <Files admin-ajax.php> Order allow,deny Allow from all Satisfy any </Files> <Files "\.(css|gif|png|js)$"> Order allow,deny Allow from all Satisfy any </Files> it's keep returning 404 when i go to http://wpsite.tld/admin thanks.. |
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: | 757-416-6627 | Chat: | Click To Chat Now |