怎么讲 query string 转换为分段URL?
我现在的网站的 URL 类型是 :http://www.example.com/index.php?c=controller&m=function
这样的,我想改成:
http://www.example.com/index.php/controller/function
并且还得保证 http://www.example.com/index.php?c=controller&m=function 这种的链接还能正常访问,求解?
config.php中将$config['uri_protocol']改为 'PATH_INFO',然后再使用site_url的时候即可生成http://www.example.com/index.php/controller/function 这种形式的url了
页:
[1]