yinshuang 发表于 2010-7-9 11:41:31

去掉index.php后设置url_suffix为.html 无法识别

我是新手,若问题过于弱智还请前辈留情

已经根据各位前辈说的方法取消了url中的index.php,现在的地址类似于http://localhost/test/index,能成功访问

但是设置$config['url_suffix'] = ".html";后,根据理论http://localhost/test/index.html应该是能访问的,但是事实是返回404错误

已经困扰很久了

请大虾指点迷津,不胜感激

Hex 发表于 2010-7-9 12:12:51

报告一下服务器环境信息。
毫无疑问是你服务器环境造成的。

yinshuang 发表于 2010-7-9 12:20:01

本地服务器是 wamp2.0的

visvoy 发表于 2010-7-9 19:07:24

:o 我可以访问啊,同样设置,用的appserv

conqweal 发表于 2010-7-9 20:06:23

你没配置好环境,
没支持.htaccess.
看看
apache httpd.confg   LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so 是否开启

sd4504255 发表于 2010-7-12 14:53:31

哦~原来是这样
页: [1]
查看完整版本: 去掉index.php后设置url_suffix为.html 无法识别