CodeIgniter URL添加后缀
2015-07-29 09:32
169 查看
通过配置/application/config/config.php文件的$config['url_suffix']值,可以为CodeIgniter生成的URL添加一个指定的文件后缀,注意不要漏了点
比如这个URL:example.com/index.php/products/view/shoes,如果配置后缀为html,那么跳转后的URL变为:example.com/index.php/products/view/shoes.html
$config['url_suffix'] = '.html';
比如这个URL:example.com/index.php/products/view/shoes,如果配置后缀为html,那么跳转后的URL变为:example.com/index.php/products/view/shoes.html
相关文章推荐
- NYOJ 757 期末考试
- 压缩解压缩命令巧记
- BI相关的内容---BI是什么,主要工作的内容有哪些?
- 黑马程序员--IO流
- UVA 375 Inscribed Circles and Isosceles Triangles
- ZOJ 3450 Doraemon's Railgun (DP·分组背包)
- CSS中的 backgroundPosition 属性
- Xshell小技巧
- HDU 1950 Bridging signals 桥接信号
- DevExpress v15.1:WinForms控件功能升级(二)
- fopen、fwrite使用
- App线上推广的笨方法——从0到100万的质变
- Java,XML,Android 删除各种注释内容
- LACP
- Ubuntu下使用Vi是方向键变乱码 退格键不能使用的解决方法
- dede数据库类使用方法 $dsql(转)
- cygwin编译ffmpeg时出现的问题
- Apache Shiro 验证
- poj-2506 Tiling
- STP