mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 13:38:22 +01:00
22 lines
726 B
ApacheConf
22 lines
726 B
ApacheConf
AddDefaultCharset UTF-8
|
|
|
|
<IfModule mod_rewrite.c>
|
|
## Enable rewrite rules
|
|
RewriteEngine on
|
|
|
|
## Prevent direct access to Formwork folders
|
|
## but allow access to template assets
|
|
RewriteRule ^templates/assets/.* - [L]
|
|
RewriteRule ^(backup|cache|config|formwork|templates|vendor)/.* index.php [L]
|
|
|
|
RewriteRule ^(.*)\.(md|yml|json|php)/?$ index.php [L]
|
|
RewriteRule ^(\.(.*)|LICENSE|composer\.lock)/?$ index.php [L]
|
|
|
|
RewriteRule ^admin/(accounts|logs|schemes|src|translations|views)/.* index.php [L]
|
|
RewriteRule ^admin/(\.(.*)|rollup\.config\.js)/?$ index.php [L]
|
|
|
|
## Let all URI be processed by index.php
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^.* index.php
|
|
</IfModule>
|