mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 13:38:22 +01:00
20 lines
542 B
ApacheConf
Executable File
20 lines
542 B
ApacheConf
Executable File
AddDefaultCharset UTF-8
|
|
|
|
<IfModule mod_rewrite.c>
|
|
## Enable rewrite rules
|
|
RewriteEngine on
|
|
|
|
## Prevent direct access to Formwork folders
|
|
RewriteRule ^(cache|config|formwork|templates|vendor)/.* index.php [L]
|
|
RewriteRule ^(.*)\.(yml|md)$ - [R=404,L]
|
|
|
|
RewriteRule ^admin/(accounts|languages|logs|schemes|src|views)/.* admin/index.php [L]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^admin/.* admin/index.php [L]
|
|
|
|
## Let all URI be processed by index.php
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteRule ^.* index.php
|
|
</IfModule>
|