This commit is contained in:
cjd
2026-02-18 09:47:20 +08:00
parent 4d0db0c8df
commit a98bc6f13c
5 changed files with 2436 additions and 25 deletions

View File

@@ -1,25 +0,0 @@
<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>

12
public/__diag_php.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
header('Content-Type: application/json; charset=utf-8');
echo json_encode([
'php_version' => PHP_VERSION,
'loaded_ini' => php_ini_loaded_file(),
'extension_dir' => ini_get('extension_dir'),
'mbstring_loaded' => extension_loaded('mbstring'),
'mb_split_exists' => function_exists('mb_split'),
], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);

3
public/nginx.htaccess Normal file
View File

@@ -0,0 +1,3 @@
location / {
try_files $uri $uri/ /index.php?$query_string;
}