From 489ee32f99820be2313db1227a4efd8de7cc8f57 Mon Sep 17 00:00:00 2001 From: monanxiao Date: Wed, 15 Mar 2023 17:03:31 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=BA=9F=E5=BC=83=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E9=9C=80=E8=A6=81=E5=90=88=E5=B9=B6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit cd0ebf8e5bda88fd9f27058610bebd051054b3d5. --- public/.htaccess | 13 ++++++----- public/nginx.htaccess | 51 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index 8932768..cbc7868 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,7 +1,8 @@ - Options +FollowSymlinks -Multiviews - RewriteEngine On - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] - \ No newline at end of file + 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 e69de29..a9942c4 100644 --- a/public/nginx.htaccess +++ b/public/nginx.htaccess @@ -0,0 +1,51 @@ +#此文件为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; +# } + +#------------------------------------------------------------------------------------------------ + + + + + + + + +