阿呆 发表于 2011-11-21 17:14:36

URL重写index.php ==httpd.ini

本帖最后由 阿呆 于 2011-11-21 17:34 编辑

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

RewriteRule ^(.*)$   /index.php/$1

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


acabin 发表于 2011-11-22 22:48:10

RewriteCond $1 !^(index\.php|static*|dynamic*|favicon\.ico|robots\.txt)   
页: [1]
查看完整版本: URL重写index.php ==httpd.ini