hn.today

Google cannot index Blogger.com. Bing can. But it is Blogspot's bug

software.mihvoi.org8 points3 comments
Screenshot of Google cannot index Blogger.com. Bing can. But it is Blogspot's bug

The problem described is a Blogger indexing failure caused by a mismatch between mobile redirects and canonical URLs. Google’s mobile crawler is sent from a Blogspot page to its “?m=1” version, but that mobile page declares the URL without “?m=1” as canonical. Visiting the canonical URL then redirects back to the mobile version, creating a loop that Google Search Console reports as a redirect error. As a result, Google generally cannot index the page, except when it happens to use its desktop crawler. The explanation contrasts this with Bing’s ability to index the pages and attributes the issue to Blogger’s handling of URLs, not to a lack of useful content.

The proposed fix is to edit a modern Blogger theme and add a script in the head section, after the all-head-content section. The script changes the canonical URL’s query string to “?m=1,” so it points to the version that does not redirect. To check the change, save the theme, open a post with a full URL, and use Google Search Console’s live URL test; the reported canonical should end in “?m=1.” Request indexing there, then check Google search results over the following days, allowing roughly two weeks for updates to appear. As a longer-term alternative, the author recommends using a personal domain, preserving each post’s path, and changing the canonical hostname to that domain.

Read on software.mihvoi.org3 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Web

Are EU Kidding Me?

Are EU Kidding Me?

A legal scholar argues that the EU’s proposed Kids Act is poorly drafted, with conflicting rules and broad language that could sweep in unrelated services and restrict products such as voice assistants. He urges the European Commission to withdraw the proposal and rewrite it with clearer, workable requirements. (michae.lv)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.