formwork/.htaccess
Giuseppe Criscione abdc9ccb3b Update .htaccess
2019-11-05 15:54:45 +01:00

22 lines
706 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 ^(cache|config|formwork|templates|vendor)/.* index.php [L]
RewriteRule ^(.*)\.(md|yml|json)/?$ index.php [L]
RewriteRule ^(\.(.*)|LICENSE|composer\.lock)/?$ index.php [L]
RewriteRule ^admin/(accounts|languages|logs|schemes|src|views)/.* index.php [L]
RewriteRule ^admin/(\.(.*)|gulpfile\.js)/?$ index.php [L]
## Let all URI be processed by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.* index.php
</IfModule>