我已将安装程序从旧站点重定向到新站点,但是当我尝试更改地址时Google给出了错误消息。
这是在我的.htaccess中
Redirect 301 https://www.thebackcountrytrail.com https://highaltitudebrands.com
Redirect 301 http://www.thebackcountrytrail.com https://highaltitudebrands.com
Redirect 301 http://thebackcountrytrail.com https://highaltitudebrands.com
Redirect 301 https://thebackcountrytrail.com https://highaltitudebrands.com
这是我得到的错误:
任何帮助将不胜感激。
请在.htaccess
中添加以下代码
RewriteEngine on
RewriteCond %{HTTP_HOST} ^olddomain.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC]
RewriteRule ^(.*)$ https://newdomain.com/$1 [L,R=301,NC]
或者您也可以使用301 redirect
插件。