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

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

初步判断是多语言插件导致的错误
使用curl测试

服务器报 301 代码,意思是重定向
为了处理这个问题,我在TranslatePress后台翻找,终于找到了跟SEO相关的设置项

这里最后一项
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测试

bingo,问题解决
在GSC后台再次提交验证