2014-09-20 99 views
0

我想让我的301重定向在Wordpress中工作。我在之前的Wordpress网站上完成了这个任务。这是我目前正在生成的500错误页面,当我检查主网站不仅仅是重定向。301重定向在.htacess文件中产生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

尝试将重定向301只rewriteBase线以下。 – Howli 2014-09-20 14:06:40

+0

我试过了,它仍然给我整个网站的500错误 – user3718071 2014-09-20 15:56:12

回答

0

尝试改变整个Rediret 301规则

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

有进一步结账一看here ..

+0

不知道我是否需要编辑你给我的东西或只是粘贴它。我不熟悉htacess编辑。这是我在我的文件中。 (这也包括一些其他的插件信息和所有的重定向)http://ww2.landonwinery.com/wp-content/Redirects%202.txt – user3718071 2014-09-20 17:04:56