我正在尝试在Wordpress网站上实现简单的重定向。
这是有问题的一行:
Redirect 301 http://bureaudebureau.com http://bureaudebureau.com/category/furniture
以下是我正在使用的整个.htaccess文件:
AddHandler php-stable .php
Redirect 301 http://bureaudebureau.com http://bureaudebureau.com/category/furniture
# 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
答案 0 :(得分:0)
如果您确定,那么您可以在htaccess中替换当前代码
AddHandler php-stable .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^$ category/furniture [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress