企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 1.在‘其他选项菜单’中找到‘打开配置文件’中的‘vhosts-ini’文件 ![](https://box.kancloud.cn/a23094cd22dc258d3a38b768f5ed17fe_486x338.png) ## 2.找到新增的server ![](https://box.kancloud.cn/f12cc4fd7dd2276846dfc47cf8cd23b6_554x436.png) ## 3.将下面一段规则导入相应位置 if (!-e $request_filename){ rewrite "^/(?i)admin(\/[a-z]{1}[a-z0-9\_\/]*|\/|)$" /index.php?route=admin$1 last; rewrite "^/(?i)api(\/[a-z]{1}[a-z0-9\_\/]*|\/|)$" /index.php?route=api$1 last; rewrite "^/(?i)upload(\/[a-z]{1}[a-z0-9\_\/]*|\/|)$" /index.php?route=upload$1 last; rewrite "^(?i)(\/[a-z]{1}[a-z0-9\_\/]*|\/|)$" /index.php?route=front$1 last; } (?i):忽略url大小写,如果路径要严格区分大小写,请去掉正则匹配中的(?i) ![](https://box.kancloud.cn/0a52f634cbd0d3c53616caae7961a89d_479x389.png) ## 4.保存,重启服务