首页 > apache中url重写失效

apache中url重写失效

<IfModule mod_rewrite.c>
    Options +FollowSymlinks -Multiviews
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>

我也已经仔细按照http://www.jb51.net/article/3...这里面的内容检查过无问题,但是发现仍然无法重写。
我试过写成

<IfModule mod_rewrite.c>
    Options +FollowSymlinks -Multiviews
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,PT,L]
</IfModule>

同样发现访问页面并没有全部转到index.php中,请问这是怎么回事?
查看apache的error.log发现都是未找到对应文件,说明重写根本就没有生效,这是为什么


重启apache了吗?

【热门文章】
【热门文章】