Hey!
I recently deleted my .htaccess files and moved the rules into apache's sites-enabled config file, since i'm told it's more secure.
Looks like this:
Code:
<Directory /var/www/directory>
Options None
AllowOverride AuthConfig
Order allow,deny
allow from all
AuthType Basic
AuthName "authname"
AuthUserFile /pathto/.authuserfile
Require user user01
</Directory>
Is this a correct entry?
I basically just copy+pasted the .htaccess file, but not sure every line is necessary, it feels redundant somehow.
Thanks in advance!