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

[HELP] URL重写index.php ==httpd.ini

[复制链接]
发表于 2011-11-21 17:14:36 | 显示全部楼层 |阅读模式
本帖最后由 阿呆 于 2011-11-21 17:34 编辑

这句是让网站所有URL都去除   index.php

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

如何  让某个文件夹下包括子文件夹  可以用原来正常路径
像这样写 ,images/a.jpg是可以正常访问的,但 images/a/a.html?i=3&im=g&a=8    这样的路径就访问不到
RewriteRule /images/([0-9,a-z,\.,-,_]*) /images/$1 [L]


发表于 2011-11-22 22:48:10 | 显示全部楼层
RewriteCond $1 !^(index\.php|static*|dynamic*|favicon\.ico|robots\.txt)   

本版积分规则