1.普通模式(PATH_INFO)
2.混合模式(既可以使用強制路由也可以使用PATH_INFO)
3.強制模式
啓用普通模式
關閉路由,默認使用PATH_INFO
打開配置文件 /application/config.php
修改 'url_route_on' => false
啓動混合模式
開啓路由,並使用路由定義+默認PATH_INFO
方式的混合:
url_route_on' => true
'url_route_must' => false
啓動強制模式
開啓路由,並設置必須定義路由才能訪問
url_route_on' => true
'url_route_must' => true
建議:推薦使用強制路由模式,動態路由註冊