我正在努力让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/
尝试将整个Rediret 301
规则更改为
RewriteRule ^/thefile.html$ /yourdirectory/thefile.html [R=301,L]
请看这里,以便进一步结账。。