How can I add .htaccess? I have two files it is .htaccess and .htpasswd. But this files work only when they are in folder admin. How can I add it only for admin. admin.php
is in main directory. I mean that admin.php is not in folder admin.
.htaccess
AuthType Basic
AuthName "For admins only!"
AuthUserFile /var/www/.../.htpasswd
require valid-user
.htpasswd
admin:$apr1$vVd1NLts$q4Grxt/...