301 .htaccess文件中的重定向会产生500错误页面

时间:2014-09-20 14:05:56

标签: php wordpress redirect

我正试图让我在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/

1 个答案:

答案 0 :(得分:0)

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

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

查看here以便进一步结帐。

相关问题