Php .htacess文件中的301重定向生成500错误页

Php .htacess文件中的301重定向生成500错误页,php,wordpress,redirect,Php,Wordpress,Redirect,我正在努力让Wordpress中的301重定向正常工作。我在以前的Wordpress网站上做过这件事,没有任何问题。这是我目前所拥有的,当我检查主网站时,会产生500个错误页面,而不仅仅是重定向 谢谢你的帮助 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-

我正在努力让Wordpress中的301重定向正常工作。我在以前的Wordpress网站上做过这件事,没有任何问题。这是我目前所拥有的,当我检查主网站时,会产生500个错误页面,而不仅仅是重定向

谢谢你的帮助

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Redirect 301 /images/kids%20menu.pdf http://ww2.landonwinery.com/bistro/bistro-kids-menu/
Redirect 301 /images/landon%20dinner.pdf http://ww2.landonwinery.com/bistro/bistro-dinner-menu/
Redirect 301 /images/landon%20dinner%202014.pdf http://ww2.landonwinery.com/bistro/bistro-dinner-menu/
Redirect 301 /images/landon%20lunch%202014.pdf http://ww2.landonwinery.com/bistro/bistro-lunch-menu/
#开始WordPress
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
重定向301/images/kids%20menu.pdfhttp://ww2.landonwinery.com/bistro/bistro-kids-menu/
重定向301/images/landon%20dinner.pdfhttp://ww2.landonwinery.com/bistro/bistro-dinner-menu/
重定向301/images/landon%20晚餐%202014.pdfhttp://ww2.landonwinery.com/bistro/bistro-dinner-menu/
重定向301/images/landon%20lunch%202014.pdfhttp://ww2.landonwinery.com/bistro/bistro-lunch-menu/

尝试将整个
Rediret 301
规则更改为

RewriteRule ^/thefile.html$ /yourdirectory/thefile.html [R=301,L]

查看进一步的签出。

尝试将重定向301移动到略低于基线的位置。我尝试了,但它仍然会给我整个站点带来500个错误。我不确定是否需要编辑您给我的内容或只是粘贴它。我对htacess编辑不是很熟悉。这是我档案里的东西。(这还包括一些其他插件信息和所有重定向)