Neova高级 SEO 平台

canonical 指向 HTTP URL

在 Neova 中 直接在抓取过程中运行,无需任何设置。

规则最近审核:2026年10月17日 · 指南更新:2026年7月7日

Google 把 HTTPS URL 上的 HTTP canonical 列为相互矛盾的信号。

您可以做什么

在 HTML 和 Link 响应头中,把 canonical 改为 HTTPS URL。

Neova 如何发现

Neova 请求每个地址,并读取服务器的响应。

Neova 为何标记

  • HTTPS URL 指定 HTTP 的 canonical,会把搜索引擎引向不安全的版本。
  • Google 把 HTTPS 页面带有指向 HTTP 页面的 canonical 列为冲突信号,与它通常偏好 HTTPS 的做法相悖。
  • 访问 HTTP URL 的访客会遇到重定向或不安全的页面。

来源

生成的工单

这一部分目前只有英文版。

IN-025 · Canonical Points to an HTTP URL

How to Check the Fix: 1. Run the check again in Neova
2. Spot-check sample URLs across affected templates
3. Record the re-check date and period label next to the baseline

Neova writes this ticket for every affected page group and sends it to Jira, Linear, Asana and the rest, after you approve it.

完整指南

这一部分目前只有英文版。

TL;DR: The page is served over HTTPS, but its canonical points at the http:// version of the very same URL. You are telling Google to treat the insecure twin as the master copy. Left alone it can undo an HTTPS migration and get the wrong, non-secure URL indexed. The fix is almost always trivial: correct one hardcoded protocol in a template so the canonical reads https://.

What This Means

A canonical names the preferred version of a page when several URLs serve the same content. This flag fires when an HTTPS page declares a canonical using http:// instead of https://. The secure page is nominating its own insecure version as the one that should rank and be indexed. Same path, same content, wrong protocol, the page reachable at HTTPS is pointing search engines back to HTTP. It nearly always traces to an HTTP-to-HTTPS migration where the canonical logic in a template kept emitting the old protocol.

Why It Matters

Google prefers HTTPS and uses it as a lightweight ranking signal, but the bigger risk here is index confusion. If Google honors the canonical, it may index the HTTP URL, which then hits your HTTPS redirect and creates a mismatch between the version you point at and the version that actually serves. On sites that still answer on both protocols, this can split signals, waste crawl budget, and surface "not secure" URLs to users. It is a mid-severity issue: rarely fatal, but it quietly erodes the migration you paid for.

A Real Failing Tag, and the Fix

<!-- Served at https://example.com/pricing/ -->
<link rel="canonical" href="http://example.com/pricing/" />

The page loads securely, then tells Google the insecure URL is canonical. Correct the protocol so the tag matches the secure address the page is actually served from:

<!-- Served at https://example.com/pricing/ -->
<link rel="canonical" href="https://example.com/pricing/" />

Root cause is usually a stored site URL or a template variable frozen at http://. In WordPress that is often the Site Address / WordPress Address still on HTTP, or a plugin building canonicals from a hardcoded base. Fix the base value and the whole site's canonicals flip to HTTPS at once.

Protocol-Mismatch Cases and What Each Needs

Page Served On Canonical Declares Result Fix
HTTPS HTTP, same path Insecure URL nominated as master Change canonical to HTTPS (this check)
HTTPS HTTPS, same path Correct, self-referencing None
HTTP (no redirect) HTTP Secure version not consolidated Force HTTPS redirect + HTTPS canonical
HTTPS HTTP that 301s to HTTPS Canonical-to-redirect chain Point canonical at final HTTPS URL
Both HTTP and HTTPS resolve Mixed Duplicate protocol split Redirect HTTP→HTTPS, canonical to HTTPS

How to Detect It

  1. Screaming Frog: crawl the HTTPS site, open the Canonicals tab, and look at Canonical Link Element 1. Sort or filter that column for values starting with http://. Any secure page whose canonical begins with plain HTTP is a hit. A custom search filter for http:// in the canonical extraction isolates them in bulk.
  2. GSC URL Inspection: inspect the HTTPS URL and read "User-declared canonical." If it shows the http:// variant, the mismatch is confirmed. Also check whether "Google-selected canonical" flipped to HTTP, which tells you Google is acting on the bad signal.
  3. curl: curl -s https://example.com/pricing/ | grep -i canonical, inspect the protocol in the returned href. If it reads http:// while you requested https://, that is the defect, visible in one line.

How to Fix It

  1. Find where the protocol is set: the CMS site-URL option, a theme constant, or a plugin's base-URL config. That single value is stamping HTTP onto every canonical.
  2. Switch it to https:// and clear any page/object cache so regenerated HTML carries the corrected tag.
  3. Make sure every HTTP URL 301-redirects to its HTTPS equivalent, so the protocol you canonicalize to is also the only one that serves. See HTTP Does Not Redirect to HTTPS.
  4. Re-crawl and confirm no canonical still starts with http://. Verify in GSC that Google-selected canonicals are now HTTPS.
  5. If both protocols still answer with 200, close the split entirely, details in URL Works on HTTP and HTTPS.

FAQ

Is an HTTP Canonical on an HTTPS Page a Serious Problem?

It is mid-severity. It will not always deindex you, but it muddies which protocol Google indexes and can partially unwind an HTTPS migration. It is cheap to fix, so there is no reason to leave it.

Will Google Always Index the HTTP Version If I Point at It?

Not always, Google prefers HTTPS and may override an obviously wrong canonical. But you should not rely on Google to correct your markup; declare HTTPS explicitly.

Why Did This Appear After Our HTTPS Migration?

Because the canonical logic was never updated. Migrations flip the served protocol but often leave a stored base URL or template constant on HTTP, so the tag keeps emitting the old scheme.

Do I Still Need HTTP-to-HTTPS Redirects If I Fix the Canonical?

Yes. The canonical is a hint; the 301 is the enforcement. Together they ensure both users and crawlers land on and index the secure version. Fixing one without the other leaves a gap.

What About Mixed Content After Switching to HTTPS Canonicals?

Separate but related issue: subresources still loaded over HTTP will trigger insecure-content warnings even with a correct canonical. Audit those too, see Mixed Content: How to Find and Fix HTTP Resources on HTTPS and the HTTPS Migration Technical Checklist.

Related canonical checks: Canonical Points to External URL · Canonical Points to Another Canonicalized URL

在您自己的网站上找到它

Neova 在每次抓取时都会运行此检查项和其他所有检查项,然后把修复方法写成工单交给您的团队。

  • 适用于 Mac、Windows 和 Linux 的桌面应用
  • 全部 696 项检查,每项都附来源
  • Search Console 和 Analytics 4,以只读方式连接
  • 工单发送到 Jira、Linear 和 Asana

下载 Neova Desktop Free 套餐,或免费试用 Solo 14 天,无需银行卡。

全部可索引性检查 · 指南 · 检查项库

作者:Neova Labs · 返回检查项库