需要要虚拟主机的配置文件里添加下面的项目

location / {
try_files $uri /index.php$is_args$args;
}

location /api/ {
try_files $uri /api/index.php$is_args$args;
}

官方文档参考

https://phpmaker.dev/docs/#/urlrewrite.html

By jack

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

57 + = 64