From ce32d1b65138e7e4e1cdd08d3d4acaa79fcf7364 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 15:25:31 +0000 Subject: [PATCH 2/2] Serve Kabano from site root instead of /public Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com> --- .htaccess | 6 ++++++ README.md | 2 ++ index.php | 3 +++ src/Core/config.example.php | 7 +++++-- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .htaccess create mode 100644 index.php diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..ccb95ca --- /dev/null +++ b/.htaccess @@ -0,0 +1,6 @@ +RewriteEngine On + +RewriteRule ^public(/.*)?$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ public/$1 [L] diff --git a/README.md b/README.md index 244b68c..26a4006 100755 --- a/README.md +++ b/README.md @@ -8,3 +8,5 @@ - `Controllers/` : contrôleurs MVC backend (ancien `controllers/`) - `Models/` : modèles MVC backend (ancien `models/`) - `Thirds/` : dépendances tierces backend (ancien `third/`) + +Note: configure the web server at the repository root; requests to `/` are routed to `public/` via `.htaccess`. diff --git a/index.php b/index.php new file mode 100644 index 0000000..b140ab4 --- /dev/null +++ b/index.php @@ -0,0 +1,3 @@ +