MrTrick/ldapaas/master/.htaccess
# Don't accept insecure connections - basic authentication is not safe unless over https
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule . - [F,NC]
# Authentication
AuthType Basic
AuthName "LDAPaaS Access"
AuthBasicProvider file
AuthUserFile /var/www/html/ldapaas/.htpasswd
Require valid-user
# Block the config and auth files from view
<Files ~ "(^.ht|.ini$)">
Order allow,deny
Deny from all
</Files>
# Feed every request to index.php
RewriteEngine on
RewriteRule ^.*$ index.php [NC,L]
On Github License
Files
Download PDF of Htaccess file