如何使用.html扩展名呈现.php URL [英] How do i render .php URL with .html extension
本文介绍了如何使用.html扩展名呈现.php URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Codeigniter PHP框架。
Hi i am using Codeigniter PHP framework.
有什么方法可以显示 .html
扩展名吗?比 URL 中的 .php
扩展名多?
Is there is any way to display .html
extension rather than .php
extension in URL?
推荐答案
在此处找到的config.php上设置您的URL后缀
Set your url suffix on your config.php found here
/application/config/config.php
$ config ['url_suffix'] ='.html'; // @第60行
这篇关于如何使用.html扩展名呈现.php URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文