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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -