php - How to make my opencart site as password protected -
this question has answer here:
- opencart force login 4 answers
my opencart website under construction.i want show coming soon(construction) page public , make opencart index.php , other sub pages of site visible password protected users.how can this?
how possible show construction index.html page public , other index.php(opencart root folder page)and other pages private.
put .htaccess in root of site
1.generate htpasswd here: http://www.htaccesstools.com/htpasswd-generator/
2.then put in .htacces:
authtype basic authname "password protected area" authuserfile /path/to/.htpasswd require valid-user
(you need change “/path/to/.htpasswd” full path .htpasswd.)
Comments
Post a Comment