refactor: support portable PHP hosting without Docker
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
# Keep real assets accessible and route application requests through the front controller.
|
||||
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
RewriteRule ^ - [L]
|
||||
RewriteRule ^ index.php [L]
|
||||
|
||||
# Never expose environment/config/database files through Apache.
|
||||
<FilesMatch "^(\.env|.*\.(sql|log|ini))$">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
Reference in New Issue
Block a user