diff options
author | ryo <ryo@nopwd.lol> | 2025-03-06 13:06:42 +0000 |
---|---|---|
committer | ryo <ryo@nopwd.lol> | 2025-03-06 13:06:42 +0000 |
commit | e1a48c8208c181fd40ecb065878ba9ea49b1f48f (patch) | |
tree | d7a0cafef9d406dd21a694ed60ab6f1ea034335f /public |
Initial Commit
Diffstat (limited to 'public')
-rw-r--r-- | public/.htaccess | 25 | ||||
-rw-r--r-- | public/favicon.ico | 0 | ||||
-rw-r--r-- | public/index.php | 20 | ||||
-rw-r--r-- | public/robots.txt | 2 |
4 files changed, 47 insertions, 0 deletions
diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..b574a59 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,25 @@ +<IfModule mod_rewrite.c> + <IfModule mod_negotiation.c> + Options -MultiViews -Indexes + </IfModule> + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Handle X-XSRF-Token Header + RewriteCond %{HTTP:x-xsrf-token} . + RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] +</IfModule> diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/public/favicon.ico diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..ee8f07e --- /dev/null +++ b/public/index.php @@ -0,0 +1,20 @@ +<?php + +use Illuminate\Foundation\Application; +use Illuminate\Http\Request; + +define('LARAVEL_START', microtime(true)); + +// Determine if the application is in maintenance mode... +if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) { + require $maintenance; +} + +// Register the Composer autoloader... +require __DIR__.'/../vendor/autoload.php'; + +// Bootstrap Laravel and handle the request... +/** @var Application $app */ +$app = require_once __DIR__.'/../bootstrap/app.php'; + +$app->handleRequest(Request::capture()); diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: |