CI基础-添加 URL 后缀

通过设置 config/config.php 文件,你可以为 CodeIgniter 生成的 URL 添加一个指定的文件后缀。举例来说,如果 URL 是这样的:

example.com/index.php/products/view/shoes
你可以随意添加一个后缀,例如 .html,使其显示为:

example.com/index.php/products/view/shoes.html
(icebird注:英文中由于参数可直接看懂其含义,并未说明应修改哪个参数,在这里应修改$config['url_suffix']这个参数。)

posted @ 2013-08-28 15:18  竹三戒  阅读(452)  评论(0编辑  收藏  举报