rel-canonical 还应该包括协议(http/https)吗? [英] should rel-canonical also include protocol (http/https)?

查看:42
本文介绍了rel-canonical 还应该包括协议(http/https)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的网站从 http 迁移到 https(尽管它仍然支持通过 http 访问)

I'm migrating my website from http to https (although it will still support access via http)

目前我的所有页面都在 HTML 中设置了准确的 rel-canonical 元标记,但显然它们都指向规范的 http://url.

Currently all of my pages have accurate rel-canonical meta tags set in the HTML, but obviously they all point to the canonical http:// url.

我现在也应该将它们更新为 https://,还是可以将它们保留为 http?

Should I now be updating those to https:// too, or is it ok to leave them as http?

我想知道如果我开始混合它们,Google 是否会惩罚我,或者开始检测重复的内容

I'm wondering whether Google will penalise me, or start detecting duplicate content, if I start mixing them

推荐答案

是的,Google 将 http 和 https 视为不同的站点,因此您应该更新它们.

Yes Google sees http and https as different sites so you should update them.

服务器上的重定向在短期内可能就足够了,但我个人希望尽快更新页面.

A redirect on the server might be sufficient in the short term but personally I would be looking to update the pages as soon as you can.

这篇关于rel-canonical 还应该包括协议(http/https)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆