以下是我的htaccess文件。
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteCond %{http_host} ^my.blog.com [NC]
#RewriteRule ^(.*)$ http://my.blog.com/$1 [L,R=301]
#RewriteLog "rewrite.log"
#public目录,sys目录...,不进行重写
RewriteCond %{REQUEST_URI} !^(/public(.*)|/Public(.*)|/sys(.*)|/Themes(.*))$
#这些后缀的文件,不进行RewriteRule
RewriteCond %{REQUEST_URI} !^.*(\.css|\.js|\.gif|\.png|\.jpg|\.jpeg|\.bmp)$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
RewriteRule ^blog/(.*) target-directory/$1
RewriteRule /blog /Article/index
RewriteRule /category-([0-9]+) /Article/index/cid/$1
RewriteRule /category-([0-9]+)-([0-9]+) /Article/index/cid/$1/p/$2
RewriteRule /blog-([0-9]+) /Article/show/id/$1
http://liqingbo.cn/category-3.html
2.2能访问,2.4访问不了
有人知道2.4的规则怎么写吗?
一开始出现这个问题No input file specified.
后来修改RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] 加了个?号,目录能访问了,但其他详细页都不能访问

最佳答案
