AddDefaultCharset utf-8
AddCharset utf-8 .css .js .svg
## Enable rewrite rules
RewriteEngine on
## Let all URI be processed by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.* index.php [L]
## Prevent direct access to Formwork folders
RewriteRule ^(panel|backup|bin|cache|formwork|site|vendor)/.* index.php [L,NC]
## 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]
## Disable access to directory indexes
Options -Indexes