From 9a17047a2badc254b5e8891f8d09b1d1abf266eb Mon Sep 17 00:00:00 2001 From: ajikamaludin Date: Fri, 5 May 2023 06:18:03 +0700 Subject: [PATCH] add 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..8b8cdf8 --- /dev/null +++ b/.htaccess @@ -0,0 +1,5 @@ + + RewriteEngine On + RewriteCond %{REQUEST_URI} !^public/ + RewriteRule ^(.*)$ public/$1 [L] #relative substitution + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..55af088 --- /dev/null +++ b/index.php @@ -0,0 +1,55 @@ +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +)->send(); + +$kernel->terminate($request, $response); \ No newline at end of file