Apache 使用.htaccess重写URL得到403

Apache 使用.htaccess重写URL得到403,apache,.htaccess,mod-rewrite,Apache,.htaccess,Mod Rewrite,我有我认为是一个非常简单的URL重写,但它不工作。以下是.htaccess文件: <Files .htaccess> order allow,deny deny from all </Files> ErrorDocument 404 /errors/404.html ErrorDocument 400 /errors/400.html ErrorDocument 401 /errors/401.html ErrorDocument 403 /errors/403.html

我有我认为是一个非常简单的URL重写,但它不工作。以下是.htaccess文件:

<Files .htaccess>
order allow,deny
deny from all
</Files>
ErrorDocument 404 /errors/404.html
ErrorDocument 400 /errors/400.html
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 500 /errors/500.html


RewriteEngine On 
RewriteBase /
RewriteRule   ^help/?$   help/help.html  [NC]

两个.htaccess文件都是相同的。

您在
/help/
目录中也有.htaccess吗?是的。我怀疑这是一件相当琐碎的事情,但我不知道是什么。你检查了
/help/.htaccess
文件的存在吗?好的,也发布该文件的内容。好的,测试重命名
/help/.htaccess
,然后查看它的行为。
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR] 
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] 
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR] 
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR] 
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR] 
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]