用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3772|回复: 2
收起左侧

为什么去不掉index.php?

[复制链接]
发表于 2008-4-27 17:59:34 | 显示全部楼层 |阅读模式
xx.com/project/index.php/blog/sql/   ---------------------脚手架目录,可以访问

按照坛子里各位大大的方法,配置htaccess如下
RewriteEngine on  

RewriteCond $1 !^(index.php|images|robots.txt)  

RewriteRule ^(.*)$ /index.php/$1 [L]


修改
$config['index_page'] = "";

输入

xx.com/project/blog/sql/ ---------------------提示404 为什么呢?


目录结构如下:

root
     project
          system------------ci在此
          index.php
          .htaccess -------------在此


补充一下:
windows  amp

mod_rewrite=on

[ 本帖最后由 hxbwzy 于 2008-4-27 18:05 编辑 ]
发表于 2008-4-27 18:03:02 | 显示全部楼层
你是什么服务器?IIS 和 apache 不一样。如果是 Apache 是否打开了 mod_rewrite ,这些属于服务器问题,不是 CI 的问题,呵呵

你的 .htaccess 里的没有 project 这个目录吧?
 楼主| 发表于 2008-4-27 18:07:36 | 显示全部楼层
原帖由 Hex 于 2008-4-27 18:03 发表
你是什么服务器?IIS 和 apache 不一样。如果是 Apache 是否打开了 mod_rewrite ,这些属于服务器问题,不是 CI 的问题,呵呵

你的 .htaccess 里的没有 project 这个目录吧? ...


hex
大大英明神武,寿与天齐
迅速搞定
赞啊赞啊

本版积分规则