Fixing Indexing Issues in Blogger: Canonical Tag Explained with Complete Solution

Fixing Indexing Issues in Blogger: Canonical Tag Explained with Complete Solution
Fixing Indexing Issues in Blogger with Search and Settings Icons

🛠️ Fixing Indexing Issues in Blogger: Canonical Tag Explained with Complete Solution

If you're a Blogger user struggling with indexing issues in Google Search Console — especially the dreaded "Redirect Error" or "Page with redirect" message — you're not alone. Many blogspot users face this due to the platform's default mobile view system (?m=1) and improperly handled canonical tags.

🔍 Understanding the Indexing Problem

When you inspect your homepage or blog post URL in Google Search Console, you might see an error like this:

Redirect Error
Some of your pages are affected by this issue.

This happens when Googlebot crawls mobile URLs (with ?m=1) and doesn't find a clear canonical version.

📱 What is ?m=1 in Blogger?

Blogger appends ?m=1 to URLs when accessed from mobile devices. For example:

https://yourblog.blogspot.com/2025/05/sample-post.html?m=1

This version is not ideal for indexing and may confuse Google.

✅ The Solution: Use a Proper Canonical Tag

Add the following code inside your Blogger template's <head> section:

<b:if cond='data:blog.url == data:blog.homepageUrl'>
  <link href='https://yourblog.blogspot.com/' rel='canonical'/>
<b:else/>
  <link expr:href='data:blog.canonicalUrl' rel='canonical'/>
</b:if>

❌ Avoid Duplicate Canonical Tags

Some themes contain this extra line:

<link expr:href='data:view.url.canonical' rel='canonical'/>

Comment it out to prevent conflicts:

<!-- <link expr:href='data:view.url.canonical' rel='canonical'/> -->

🔁 Optional JavaScript Fix for ?m=1

<script>
let uri = window.location.toString();
if (uri.indexOf("?m=1") > 0) {
  let clean_uri = uri.substring(0, uri.indexOf("?m=1"));
  window.history.replaceState({}, document.title, clean_uri);
}
</script>

🧭 Submitting Sitemap in Google Search Console

Go to Sitemaps and enter sitemap.xml. Submit to ensure your posts are crawled quickly.

🧪 Final Step: Request Indexing

  1. Open Search Console
  2. Paste your blog or post URL (without ?m=1)
  3. Click “Test Live URL” → then “Request Indexing”

✅ Conclusion

With proper canonical setup, duplicate tag cleanup, and optional JavaScript redirect fix, your Blogger blog will be fully SEO-ready and free from indexing issues.

“Submit your sitemap and use the URL Inspection Tool regularly.”

*

Post a Comment (0)
Previous Post Next Post