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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -