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

[版本 2.x] 定义了.htaccess后,css文件都找不到了

[复制链接]
发表于 2011-11-29 23:09:07 | 显示全部楼层 |阅读模式
去掉,使用index.php/home的方式正常显示,怎么解决啊
发表于 2011-11-30 11:51:02 | 显示全部楼层
要排除资源文件夹
发表于 2011-11-30 13:03:20 | 显示全部楼层
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php/$1 [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond $1 !^(index\.php|robots\.txt|css|images)
  RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
  ErrorDocument 404 /index.php
</IfModule>
 楼主| 发表于 2011-11-30 18:13:34 | 显示全部楼层
谢谢 ward  

本版积分规则