我是WordPress的新手,刚从博主变成WordPress。正如你所知,博客的URL与WordPress的URL差别太大,所以在迁移之后,我开始在Google WebMaster中收到404错误,因为它仍然在爬行我的旧链接,因为根据Google WebMaster的说法,我有大约10lac的反向链接。
所以现在有人对我说要用。htaccess让谷歌将404错误URL爬网到你的新WordPress URL,所以我继续前进,但当我看到我有900多篇文章时,这意味着浪费了宝贵的时间。现在我正在考虑使用模式重定向。htaccess使其从一开始。htaccess规则我可以处理我的所有URL,并且可以从Google WebMaster中删除404错误。
我想重定向下面的模式,你能帮我吗?
/search/label/website
到/category/website
/year/month/post-title.html/?m=0
到/year/month/post-title.html
/year/month/post-title.html/?m=1
到/year/month/post-title.html
/year/month/post-title.html?m=0
到/year/month/post-title.html
/year/month/post-title.html?m=1
到/year/month/post-title.html
/search
到/
?variable=value&variable=value
.