From 9658ebdfdbc001c2dcce299f8332ec0556cb4afa Mon Sep 17 00:00:00 2001 From: Node <8974108+qwenode@users.noreply.github.com> Date: Sat, 2 Dec 2023 21:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0yii2=E6=A1=86=E6=9E=B6?= =?UTF-8?q?=E7=9A=84=E9=87=8D=E5=86=99=E8=A7=84=E5=88=99=20(#3144)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/server/nginx_conf/rewrite/yii2.conf | 3 +++ frontend/src/global/mimetype.ts | 1 + 2 files changed, 4 insertions(+) create mode 100644 cmd/server/nginx_conf/rewrite/yii2.conf diff --git a/cmd/server/nginx_conf/rewrite/yii2.conf b/cmd/server/nginx_conf/rewrite/yii2.conf new file mode 100644 index 000000000..103ebdc7d --- /dev/null +++ b/cmd/server/nginx_conf/rewrite/yii2.conf @@ -0,0 +1,3 @@ +location / { + try_files $uri $uri/ /index.php$is_args$args; +} \ No newline at end of file diff --git a/frontend/src/global/mimetype.ts b/frontend/src/global/mimetype.ts index eb80ab793..9b2cafa08 100644 --- a/frontend/src/global/mimetype.ts +++ b/frontend/src/global/mimetype.ts @@ -88,6 +88,7 @@ export const Rewrites = [ 'typecho', 'typecho2', 'thinkphp', + 'yii2', 'laravel5', 'discuz', 'discuzx',