BafS/parvula/master/.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
## Redirect if more than 2 slashes
RewriteCond %{REQUEST_URI} ^(.*)/{2,}(.*)$
RewriteRule . %1/%2 [R=301,L]
## Block access to specific files
RewriteRule ^(data|Parvula|themes)/(.*).(txt|md|html|yml|yaml|yml|xml|json|php|sh|bat|log)$ error [F]
RewriteRule ^plugins/(.*).(php|sh|bat|log)$ error [F]
# Block dot files
RewriteRule (^|/). - [F]
<FilesMatch (?i:(composer.(json|lock|phar)|(readme|license|copyright).(md|txt)))>
Deny from all
</FilesMatch>
## Handle front controller
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
# Disable directory browsing
Options All -Indexes
On Github License
Files
Download PDF of Htaccess file