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

[HELP] .htaccess 移除index.php後 連index資料夾都抓不到 求改寫

[复制链接]
发表于 2013-12-20 22:20:45 | 显示全部楼层 |阅读模式
本帖最后由 arnold0613 于 2013-12-20 22:31 编辑

我的.htaccess
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt|$)
RewriteRule ^(.*)$ /ci/admin/index.php/$1 [L]

我的控制器有一子層
/controllers/index
/controllers/main
/controllers/test

網址要是變
127.0.0.1/ci/admin/main  <----OK
但是
127.0.0.1/ci/admin/index 就找不到了
必須
127.0.0.1/ci/admin/index.php/index
win下面好的
來到linux就不行

本版积分规则