Browse Source

增加yii2框架的重写规则 (#3144)

pull/3161/head
Node 12 months ago committed by GitHub
parent
commit
9658ebdfdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cmd/server/nginx_conf/rewrite/yii2.conf
  2. 1
      frontend/src/global/mimetype.ts

3
cmd/server/nginx_conf/rewrite/yii2.conf

@ -0,0 +1,3 @@
location / {
try_files $uri $uri/ /index.php$is_args$args;
}

1
frontend/src/global/mimetype.ts

@ -88,6 +88,7 @@ export const Rewrites = [
'typecho',
'typecho2',
'thinkphp',
'yii2',
'laravel5',
'discuz',
'discuzx',

Loading…
Cancel
Save