1、路由中子域名绑定到模块
return [
'__domain__' => [
'www' => 'index',
'a' => 'admin',
],
];
2、更改配置'url_route_on' => true,
'url_domain_deploy' => true,
'url_domain_root' => 'g-tf.cn',
3、使用url函数url('index/main')生成链接是a.g-tf.cn/index/main.html但是直接访问这个链接说控制器不存在注:本地这样子设置是没有问题的,但是在阿里云就不行了,为什么呢
最佳答案
