xampp - .htaccess set up issue -


i have folder in htdocs folder chemlabdb , inside directory have html files user can browser browsers. when user put path directory, browser displays files. put .htaccess , .htpasswd file in directory. everytime visit website, enter password prompt.

my directory: enter image description here

my .htaccess file:

authtype basic authname "not available users" authuserfile "../htdocs/chemlabdb/.htpasswd" require valid-user 

what modify user can browse without having enter authentication credentials. time user required (for security) enter when try browse directory?

enter image description here

you don't need take refuge of basic authentication. put line in root .htaccess file:

options -indexes 

and don't forget comment out basic authentication code.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -