经过配置/application/config/config.php文件的$config['url_suffix']值,能够为CodeIgniter生成的URL添加一个指定的文件后缀,注意不要漏了点php
$config['url_suffix'] = '.html';
好比这个URL:example.com/index.php/products/view/shoes,若是配置后缀为html,那么跳转后的URL变为:example.com/index.php/products/view/shoes.htmlhtml