ashkov/box/master/.htaccess - Htaccess File

ashkov/box/master/.htaccess

Options -Indexes

<FilesMatch ".inc$">
order allow,deny
deny from all
</FilesMatch> 
<FilesMatch ".ini$">
order allow,deny
deny from all
</FilesMatch>
<FilesMatch ".tpl$">
order allow,deny
deny from all
</FilesMatch>
<FilesMatch ".sqlite">
order allow,deny
deny from all
</FilesMatch>
<FilesMatch "composer.*">
deny from all
</FilesMatch>

RewriteEngine On
RewriteBase /

RewriteRule ^administrator$ backsite.php?q=$1 [L,QSA]
RewriteRule ^administrator/(.*)$ backsite.php?q=$1 [L,QSA]

RewriteCond %{SCRIPT_FILENAME} !-f 
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

On Github License

Files

Download PDF of Htaccess file
SCRIPT_FILENAME

Comments

Apache