www.panel.example.com和www.example.com。
我的boot子陷阱:
<?php
Kohana::init(array(
base_url => / ,
index_file => FALSE,
));
Route::set( panel , (<controller>(/<action>(/<id>))) , array( subdomain => panel ))
->defaults(array(
directory => panel ,
controller => panel ,
action => index ,
subdomain => panel ,
));
Route::set( default , (<controller>(/<action>(/<id>))) )
->defaults(array(
controller => home ,
action => index ,
));
?>
当我撰写文章时,浏览器:www.panel.example.com 我有错误:
HTTP_Exception_404 [ 404 ]: The requested URL / was not found on this server.
我的结构:
申请/分类/控制器(域名控制器)
申请/职位/管理人员/小组(子公司控制员)
如何适当做到这一点?