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

[HELP] CI放在子文件夹下htaccess设置

[复制链接]
发表于 2014-5-18 10:30:53 | 显示全部楼层 |阅读模式
CI放在根目录ci文件夹下,其中htaccess设置为

  1. RewriteEngine on
  2. RewriteBase /ci/
  3. RewriteCond $1 !^(index\.php)
  4. RewriteRule ^(.*)$ index.php/$1 [L]
复制代码
这样设置以后
localhost/ci/welcome 可以访问
localhost/CI/index.php/welcome 可以访问
localhost/CI/welcome
404 这是什么原因
发表于 2014-5-19 11:07:40 | 显示全部楼层
设置忽略大小写  [NC]
 楼主| 发表于 2014-5-19 21:10:51 | 显示全部楼层
西斯莱杰 发表于 2014-5-19 11:07
设置忽略大小写  [NC]

试过[NC],还是不行在去掉index.php的情况下,CI所在子文件夹的名字还是大小写敏感
发表于 2014-8-12 12:46:12 | 显示全部楼层
.htaccess文件放在与index.php同一级目录下

本版积分规则