經過配置/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