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: 
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?

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
Post a Comment