how to set up htaccess
htaccess can be used with apache to provide password authentication on your website.
find this section:
add this below it:
Options Indexes FollowSymLinks Includes
Allow from all
once this section is added in, restart apache using
change into the directory you want to protect. then create a new file using
vi .htaccess and add the following to it:
AuthName "Authorization Required"
to add a new user, run
htpasswd -c /usr/local/apache/htdocs/admin/.htpasswd username
apachectl restart after you have added new users.
browse over to your site and test out if everything works.