From ab6648dde8aa376fa45e240f9485a56f5d7cee86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=A1=83?= <1098598843@qq.com> Date: Mon, 13 Mar 2023 17:05:47 +0800 Subject: [PATCH] 1 --- public/.htaccess | 8 ------- public/nginx.htaccess | 56 ++++--------------------------------------- runtime/.gitignore | 2 -- 3 files changed, 5 insertions(+), 61 deletions(-) delete mode 100644 runtime/.gitignore diff --git a/public/.htaccess b/public/.htaccess index cbc7868..e69de29 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,8 +0,0 @@ - - Options +FollowSymlinks -Multiviews - RewriteEngine On - - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] - diff --git a/public/nginx.htaccess b/public/nginx.htaccess index a9942c4..686c455 100644 --- a/public/nginx.htaccess +++ b/public/nginx.htaccess @@ -1,51 +1,5 @@ -#此文件为Nginx的伪静态文件 PHPCUSTOM官方网址:http://www.phpcustom.com http://www.lccee.com - - - - - -# 将以下是301跳转设置,请自定修改为您的域名 - if ($Host = 'xxx.com'){ - rewrite ^/(.*)$ http://www.phpcustom.com/$1 permanent; - } - - - - - - -#以下为phpwind9.0伪静态规则,去掉下面的#即可生效 -#------------------------------------------------------------------------------------------------ - -# if (-f $request_filename) { -# break; -# } -# if ($request_filename ~* "\.(js|ico|gif|jpe?g|bmp|png|css)$") { -# break; -# } -# if (!-e $request_filename) { -# rewrite . /index.php last; -# } - - - - - -# 这个是ThinkPHP V5伪静态规则示例 请去掉以下代码前边的#号即可生效 - -#------------------------------------------------------------------------------------------------ -#if (!-e $request_filename) { -# rewrite ^(.*)$ /index.php?s=/$1 last; -# break; -# } - -#------------------------------------------------------------------------------------------------ - - - - - - - - - +location / { + if (!-e $request_filename){ + rewrite ^(.*)$ /index.php?s=$1 last; break; + } +} \ No newline at end of file diff --git a/runtime/.gitignore b/runtime/.gitignore deleted file mode 100644 index c96a04f..0000000 --- a/runtime/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file