From cca6ff41fc16bf3f5c84b1843b38b330b8919b4a Mon Sep 17 00:00:00 2001 From: Aji Kamaludin Date: Tue, 16 May 2023 22:39:28 +0700 Subject: [PATCH] add index and .htaccess --- .htaccess | 5 +++++ index.php | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .htaccess create mode 100644 index.php diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..0a16efe --- /dev/null +++ b/.htaccess @@ -0,0 +1,5 @@ + + RewriteEngine On + RewriteCond %{REQUEST_URI} !^public/ + RewriteRule ^(.*)$ public/$1 [L] #relative substitution + diff --git a/index.php b/index.php new file mode 100644 index 0000000..7efa593 --- /dev/null +++ b/index.php @@ -0,0 +1,55 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +)->send(); + +$kernel->terminate($request, $response);