From cd0ebf8e5bda88fd9f27058610bebd051054b3d5 Mon Sep 17 00:00:00 2001 From: monanxiao Date: Wed, 15 Mar 2023 09:49:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=9F=E5=BC=83=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=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 --- public/.htaccess | 13 +++++------ public/nginx.htaccess | 51 ------------------------------------------- 2 files changed, 6 insertions(+), 58 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index cbc7868..8932768 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,8 +1,7 @@ - Options +FollowSymlinks -Multiviews - RewriteEngine On - - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] - + 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 diff --git a/public/nginx.htaccess b/public/nginx.htaccess index a9942c4..e69de29 100644 --- a/public/nginx.htaccess +++ b/public/nginx.htaccess @@ -1,51 +0,0 @@ -#此文件为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; -# } - -#------------------------------------------------------------------------------------------------ - - - - - - - - -