Make .htaccess rewrite rules case-insensitive

This commit is contained in:
Giuseppe Criscione 2022-11-23 22:48:19 +01:00
parent 288e8468eb
commit 2c93f31be6

View File

@ -11,11 +11,11 @@ AddDefaultCharset utf-8
## Prevent direct access to Formwork folders but allow access to assets
RewriteRule ^site/templates/assets/.* - [L]
RewriteRule ^admin/(assets|avatars)/.* - [L]
RewriteRule ^(admin|backup|cache|formwork|site|vendor)/.* index.php [L]
RewriteRule ^(admin|backup|cache|formwork|site|vendor)/.* index.php [L,NC]
## Prevent access to specific files
RewriteRule ^(.*)\.(md|yml|json)/?$ index.php [L]
RewriteRule ^(\.(.*)|LICENSE|composer\.lock)/?$ index.php [L]
RewriteRule ^(.*)\.(md|yml|json)/?$ index.php [L,NC]
RewriteRule ^(\.(.*)|LICENSE|composer\.lock)/?$ index.php [L,NC]
## Let all URI be processed by index.php
RewriteCond %{REQUEST_FILENAME} !-f