php - Wordpress Home Page Password Protected For User -
i hoping can me in problem. can password protect wordpress site pages user , whenever user visit site home page .they seen password input field just. not seen whole page content . including header footer
you can password protect complete site using .htaccess , .htpasswd file
follow steps below password protect site
1) create .htaccess file following in application root folder:
authtype basic authname "password protected area" authuserfile /var/www/html/wordpress/.htpasswd require valid-user 2) create .htpasswd file in same folder /var/www/html/wordpress
the .htpasswd file should contain password use link here generate password
Comments
Post a Comment