hlmdf 发表于 2011-1-1 18:38:15

codeigniter 伪静态提示404错误

在自己的电脑上用zendserver建的服务器,在网站根目录添加了.htaccess文件

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1

config已经设置了
$config['index_page'] = "";

访问的时候还是要加index.php,直接用http://localhost/访问更目录提示404……纠结
难道是rewrite有问题???
百度谷歌无数,找不到答案……
求解……

jeongee 发表于 2011-1-1 18:50:06

apache有没加载rewrite模块呢

hlmdf 发表于 2011-1-1 18:54:06

apache里面的都开了就是说.htaccess文件能加载……
但是现在连根目录都不能访问,提示404,必须加上index.php

visvoy 发表于 2011-1-1 20:13:39

AllowOverride All

hlmdf 发表于 2011-1-3 17:29:33

呃,都设置了,是服务器的问题,用zendserver,在xampp里面没有问题谢谢了……
页: [1]
查看完整版本: codeigniter 伪静态提示404错误