mathcoll/simple-dashboard/master/.htaccess - Htaccess File

mathcoll/simple-dashboard/master/.htaccess

RewriteEngine on
DirectoryIndex index.html index.php

#enables you to access PHP files with HTML extension
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^$ php-version/index.php [L]
RewriteRule ^(.*).html$ php-version/$1.php [NC]

AuthUserFile /home/htpasswd/.htpasswd
AuthGroupFile /dev/null
AuthName "Acces Restreint"
AuthType Basic
Require valid-user

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache