【发布时间】:2015-04-12 05:02:26
【问题描述】:
我是 CodeIgniter 的新手。我在我的本地主机中设置 CI。 localhost/MyProjects/CodeIgniter/welcome/index
我的 config.php 中的 url_config 是这样的:
$config['url_suffix'] = ".html";
当我访问 URL 时,例如。
http://localhost/MyProjects/CodeIgniter/welcome/index
或
http://localhost/MyProjects/CodeIgniter/welcome/index.html
页面已加载。
我的问题是,当url不以后缀.html结尾时,如何设置CodeIgniter失败?
所以,当我这样输入时
http://localhost/MyProjects/CodeIgniter/welcome/index
请求将失败或重定向到禁止
【问题讨论】:
标签: php codeigniter