企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
二级域名绑定 首先开启域名部署application/config.php  下 ![](https://img.kancloud.cn/15/89/1589273a393421bfa6ae2eecafb3959d_477x77.png) 然后再路由文件里application/route.php,或者大家现在避免更新覆盖,可以在路由的包含文件里routemy.php添加如下 ~~~ use think\Route; Route::domain('blog','blog/index'); Route::group(['name'=>'b','ext'=>'html'], [     'article-<id>' =>['blog/content/show',['method'=>'get'],['id' => '\d+']],     'list-<fid>'=>['blog/content/index',['method'=>'get'],['fid' => '\d+']],     'mid-<mid>'=>['blog/content/index',['method'=>'get'],['mid' => '\d+']],     'article'  => 'blog/content/show',     'list' => 'blog/content/index',     'index'    => 'blog/index/index', ]); ~~~ 一:把blog修改为你需要的模块即可; 二:修改下name =>b 换个名字,比如name=>article 不要造成模块冲突 演示:[http://blog.alaiyeshi.net/](http://blog.alaiyeshi.net/)