.htaccess并非所有重写规则都有效

.htaccess并非所有重写规则都有效,.htaccess,mod-rewrite,.htaccess,Mod Rewrite,我有以下.htaccess文件 Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [R=301,L] RewriteRule ^help$ /pages/help/index.php [NC] RewriteRule ^

我有以下.htaccess文件

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [R=301,L]

RewriteRule ^help$ /pages/help/index.php [NC]
RewriteRule ^help/search$ /pages/help/search.php [NC]
RewriteRule ^help/support$ /pages/help/support.php [NC]
RewriteRule ^help/bugfixes$ /pages/help/bugfixes.php [NC]
RewriteRule ^help/([a-z0-9-]+)$ /pages/help/category.php?cat_slug=$1 [NC]
RewriteRule ^help/([a-z0-9-]+)/([0-9]+)/([a-z0-9-]+)$ /pages/help/article.php?cat_slug=$1&art_id=$2&art_slug=$3 [NC]
问题如下所示:

当我转到localhost/help时,它会重定向到localhost/C:/server/htdocs,因此我看不到索引页面。当我转到localhost/help/bug修复时也会发生同样的情况

其他页面工作得很好!直到今天,/help和/help/bugfixes也起了作用/

如果我将^help/bugfixes$更改为^help/bugfixes$(例如),将再次显示bugfixes页面。如果我将^help$更改为^help/help$(或任何其他内容),它也适用于索引页

我真的不知道会出什么问题。我已经重新启动了apache好几次了,但还是什么都没有。。。在过去的两天里,我没有更改文件中的任何内容

有人能帮我吗

编辑:我也没有更改php文件index.php和bugfaixes.php中的任何内容

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/(.+)/$
RewriteRule ^ /%1 [R,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^help/(.*)$ /pages/help/$1.php [NC,L]
RewriteRule ^help/([^/]+)/?$ /pages/help/category.php?cat_slug=$1 [L]
RewriteRule ^help/([^/]+)/([^/]+)/([^/]+)/?$ /pages/help/artical.php?cat_slug=$1&art_id=$2&art_slug=$3 [L]