rhamdeew/InStat/master/.htaccess - Htaccess File

rhamdeew/InStat/master/.htaccess

RewriteEngine on

# не позволять httpd отдавать файлы, начинающиеся с точки (.htaccess, .svn, .git и прочие)
RedirectMatch 403 /..*$

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php

<FilesMatch ".(?:md|sql|json|lock|conf)$">
Order allow,deny
Deny from all
</FilesMatch>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache