比如:www.a.com 访问Index/index/index
blog.a.com 访问 blog/index/index
我首先在application\config.php 添加了
'url_domain_deploy' => true,
\think\Route::domain('blog','blog'),
'base_url'=>'' ,
'url_route_on' => true,在模板中 用U方法生成的时候 U('blog/index/index','','',true) 生成的却是
http://blog.a.com/blog/index/index而按照手册的说明 应该生成 http://blog.a.com/index/index这是什么地方还有设置么?哪位告诉我一下呀 最佳答案