Add root .htaccess to route traffic into public directory

This commit is contained in:
Thomas
2025-10-28 14:37:34 +01:00
parent 8e608d03ec
commit 2ff756febd

10
.htaccess Normal file
View File

@@ -0,0 +1,10 @@
<IfModule mod_rewrite.c>
RewriteEngine On
# Redirect all requests to the public directory where the front controller lives
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
# Ensure the public front controller is used as the default directory index
DirectoryIndex public/index.php