php - How to make my opencart site as password protected -


this question has answer here:

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.

password-protect

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

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -