Skip to content
Documentation
Rule catalogue

sitemap.entry.protocol-mismatch

A sitemap should not mix http and https entries

warningsite-widespec-required

Why it matters

One of the two sets names pages the site does not serve at those addresses, and nothing in the file says which. Usually the residue of a migration that updated the pages and not the generator.

What the finding looks like

The message goflag prints, with example values substituted.

warn sitemap.entry.protocol-mismatch The sitemap lists both http and https URLs. One of the two sets names pages the site does not serve at those addresses, and a consumer has no way to tell which.

How to fix it

The catalogue carries no snippet for a site rule: a cross-page rule builds its remedy from what the crawl found, so goflag attaches the fix to the finding itself rather than to the rule. Run it and read the finding.

Says who?

This rule is spec-required, and it cites the document below. Nothing here is goflag’s opinion of what a good page looks like — if you disagree with a finding, this is what you are disagreeing with.