formwork/.htaccess

26 lines
718 B
ApacheConf
Raw Normal View History

AddDefaultCharset utf-8
<IfModule mod_mime.c>
AddCharset utf-8 .css .js .svg
</IfModule>
2018-06-16 16:41:58 +02:00
<IfModule mod_rewrite.c>
2018-06-16 17:49:27 +02:00
## Enable rewrite rules
RewriteEngine on
2018-06-16 16:41:58 +02:00
2023-07-29 22:39:28 +02:00
## Let all URI be processed by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.* index.php [L]
2024-11-02 00:33:37 +01:00
## Prevent direct access to Formwork folders
RewriteRule ^(panel|backup|bin|cache|formwork|site|vendor)/.* index.php [L,NC]
2020-12-19 15:57:29 +01:00
## Prevent access to specific files
RewriteRule ^(.*)\.(md|yml|yaml|json|neon)/?$ index.php [L,NC]
RewriteRule ^(LICENSE|composer\.lock)/?$ index.php [L,NC]
RewriteRule (^|/)\.(?!well-known)/? index.php [L,NC]
2018-06-16 16:41:58 +02:00
</IfModule>
2020-12-19 15:57:29 +01:00
## Disable access to directory indexes
Options -Indexes