From 3b30467251f493a6c80f96b7e4f52f9953b7ae48 Mon Sep 17 00:00:00 2001 From: monanxiao Date: Wed, 8 Mar 2023 10:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=C2=A0=20public/.htaccess=20p?= =?UTF-8?q?ublic/nginx.htaccess=20git=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ public/.htaccess | 8 ------- public/nginx.htaccess | 51 ------------------------------------------- 3 files changed, 2 insertions(+), 59 deletions(-) delete mode 100644 public/.htaccess delete mode 100644 public/nginx.htaccess diff --git a/.gitignore b/.gitignore index 9be8bf4..dac9a40 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ /public/static/home/dev /public/static/home/oa /config/database.php +/public/.htaccess +/public/nginx.htaccess diff --git a/public/.htaccess b/public/.htaccess deleted file mode 100644 index cbc7868..0000000 --- a/public/.htaccess +++ /dev/null @@ -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 deleted file mode 100644 index a9942c4..0000000 --- a/public/nginx.htaccess +++ /dev/null @@ -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; -# } - -#------------------------------------------------------------------------------------------------ - - - - - - - - -