TranslatePress导致Google Search Console中Redirect error错误的处理方法

最近在使用TranslatePress给网站添加多语言支持,添加英语后突然发现GSC中出现了大量的Redirect error,如下图所示

TranslatePress

这里一看错误全部出现在英语页面

TranslatePress5

初步判断是多语言插件导致的错误

使用curl测试

TranslatePress 3

服务器报 301 代码,意思是重定向

为了处理这个问题,我在TranslatePress后台翻找,终于找到了跟SEO相关的设置项

TranslatePress 2

这里最后一项

Load legacy SEO Pack Add-On

In case the recent migration to the new slug rewrite is causing trouble, set this to Yes to use the old method
勾选后

再次使用curl测试

TranslatePress 4

bingo,问题解决

在GSC后台再次提交验证

发表评论

zh_CNChinese