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有问题???
百度谷歌无数,找不到答案……
求解…… apache有没加载rewrite模块呢 apache里面的都开了就是说.htaccess文件能加载……
但是现在连根目录都不能访问,提示404,必须加上index.php AllowOverride All 呃,都设置了,是服务器的问题,用zendserver,在xampp里面没有问题谢谢了……
页:
[1]