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 @@ +