From 2ff756febd134474d540c8a8ee3e414530dbe794 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 28 Oct 2025 14:37:34 +0100 Subject: [PATCH] Add root .htaccess to route traffic into public directory --- .htaccess | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..c367759 --- /dev/null +++ b/.htaccess @@ -0,0 +1,10 @@ + + RewriteEngine On + + # Redirect all requests to the public directory where the front controller lives + RewriteCond %{REQUEST_URI} !^/public/ + RewriteRule ^(.*)$ public/$1 [L] + + +# Ensure the public front controller is used as the default directory index +DirectoryIndex public/index.php