mirror of
https://github.com/getformwork/formwork.git
synced 2025-03-14 19:19:48 +01:00
Make .htaccess rewrite rules case-insensitive
This commit is contained in:
parent
288e8468eb
commit
2c93f31be6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user