apache2.4和2.2的伪静态是不是不一样啊?

浏览:5707 发布日期:2015/07/31 分类:求助交流 关键字: apache2.4伪静态
我用apache2.2的时候没什么问题,切换成apache2.4以后就找不到文件了。

以下是我的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] 加了个?号,目录能访问了,但其他详细页都不能访问

最佳答案
评论( 相关
后面还有条评论,点击查看>>