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