http://localhost/index.php/Home/Login/index.html
访问没有问题
我想变成这样的
http://localhost/index.php/member/login.html
路由是这样设置的
这个是写在Home模块下的
Home\Conf\config.php文件里
URL模式也是正常的
'URL_MODEL' => 1, // URL访问模式,可选参数0、1、2、3,代表以下四种模式:
// 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE 模式); 3 (兼容模式) 默认为PATHINFO 模式
//开启路由
'URL_ROUTER_ON' => true,
// 静态路由
'URL_MAP_RULES'=>array(
'member/login.html' => 'index.php/Home/Login/index.html',
),
提示:(
无法加载模块:Member
错误位置
FILE: D:\www\ThinkPHP\Library\Think\Dispatcher.class.php LINE: 176
TRACE
#0 D:\www\ThinkPHP\Library\Think\Dispatcher.class.php(176): E('\xE6\x97\xA0\xE6\xB3\x95\xE5\x8A\xA0\xE8\xBD\xBD\xE6\xA8\xA1...')
#1 D:\www\ThinkPHP\Library\Think\App.class.php(38): Think\Dispatcher::dispatch()
#2 D:\www\ThinkPHP\Library\Think\App.class.php(193): Think\App::init()
#3 D:\www\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#4 D:\www\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#5 D:\www\index.php(10): require('D:\\www\\ThinkPHP...')
#6 {main}
请问这是什么问题呢 有好心大神提醒下 怎么做么 看了手册 还是不会 ~求助~万分感谢
最佳答案
