How To Fix Redirect Errors on Google Search Console on Blogger

Resolve Blogger redirection errors and improve indexing with this guide on fixing URL parameter issues and avoiding common mistakes
Thungex
How To Fix Redirect Errors on Google Search Console on Blogger

A Comprehensive Guide

If you're using Blogger and facing redirection errors in Google Search Console, you're not alone. These errors often come from how Blogger handles the mobile versions of your pages, especially when it adds the ?m=1 parameter. Understanding what's causing these issues and how to fix them can help make sure your site is indexed properly and performs well in search results. In this guide, we’ll break down why these errors happen, the common mistakes people make, and the best ways to fix them.

Table of Contents

Introduction

Dealing with redirection errors in Google Search Console can be frustrating, especially if you’re using Blogger site. These errors usually happen because Blogger adds a ?m=1 parameter to the URL for mobile pages. Knowing why this happens and how to solve it is important for ensuring that your site gets properly indexed by search engines. In this guide, I’ll explain what causes the issue, common mistakes to avoid, and the best ways to fix it.

Why Are You Getting This Error?

If you're seeing redirection errors in Google Search Console, it’s likely related to the ?m=1 parameter that Blogger adds to mobile versions of your pages. Let me explain how it works.

When you check the redirection errors in Search Console, you might see URLs like:

  • https://www.trendloft.xyz/2024/09/minimax-best-realistic-ai-video.html?m=1
  • https://www.trendloft.xyz/2024/09/some-other-article.html?m=1
  • https://www.trendloft.xyz/2024/09/yet-another-page.html?m=1

The ?m=1 part at the end is what causes the issue. This parameter tells Blogger to show the mobile version of the page.

Here’s how it works: If you copy a URL from your Blogger site, it looks like this:

https://www.trendloft.xyz/2024/09/minimax-best-realistic-ai-video.html

But when you view the same page on a mobile device, the URL changes to:

https://www.trendloft.xyz/2024/09/minimax-best-realistic-ai-video.html?m=1

The ?m=1 parameter is used by Blogger to display the mobile version. If you try to access the page without this parameter on a mobile device, Blogger will redirect you to the mobile version of the page with the ?m=1 parameter:

https://www.trendloft.xyz/2024/09/minimax-best-realistic-ai-video.html?m=1

This is what causes the redirection error in Search Console. Google's crawler, which often acts like a smartphone, tries to access your site using the normal URL without the parameter, but then it gets redirected to the mobile version, causing the redirection error.

In simple terms, Google's bot hits a redirect when trying to crawl your page, which leads to the error you're seeing in Search Console.

Common Mistakes When Trying to Fix the Error

A common mistake people make is trying to fix the error by adding a JavaScript code like this:

<script>
    if (window.location.search.indexOf('?m=1') > -1) {
        window.location.href = window.location.href.replace('?m=1', '');
    }
</script>

This script tries to remove the ?m=1 parameter from the URL, but it doesn't really fix the main issue for a few reasons:

  • Temporary Fix: The script only changes the URL in the user’s browser. It doesn’t change the actual URL on your server or how Google sees the URL. The ?m=1 parameter still exists and can cause more issues later.
  • Doesn't Remove the Parameter Completely: The script hides the ?m=1 parameter for now, but it doesn’t remove it from the URL structure. So, when search engines or users navigate to the page, they might still encounter the parameter.
  • Indexing Problems: Search engines like Google index URLs the way they appear. If Googlebot finds a URL with ?m=1, it could see it as a different URL from the one without the parameter. Since the script doesn’t change the URL that Google sees, the problem will persist.
  • User Experience: This solution only works for users who load the page after the script runs. It doesn’t solve the issue for search engines that might crawl the page with the parameter, which could lead to inconsistent indexing.

In short, this script doesn’t fix the real issue and could lead to ongoing redirection errors. It’s better to find a solution that fits how Blogger handles URLs and ensures that search engines can index your site properly.

Another mistake is trying to block URLs with the ?m=1 parameter in the robots.txt file like this:

User-agent: *
Disallow: /*?m=1

This might seem like a good fix, but it can create even more problems:

  • Not Solving the Main Problem: Blocking URLs with the ?m=1 parameter doesn’t get to the heart of the issue. Google’s smartphone bot needs to see the mobile version of your pages, which is why Blogger uses this parameter. By blocking it, you could prevent Google from accessing the mobile version, which could lead to incomplete crawling and more errors.
  • Indexing Issues: Blocking the ?m=1 parameter could make Google’s crawler struggle to index yoursite correctly. If Google can’t see the mobile version, it may affect how your content is indexed and ranked.

How to Fix This Issue

  1. Don’t Block the Parameter: Use a robots.txt file that doesn’t block URLs with parameters. Here’s a simple example of a robots.txt file that allows all URLs to be crawled:
  2. User-agent: *
            Allow: / Sitemap: https://www.trendloft.xyz/sitemap.xml
  3. Ignore Redirection Errors: Sometimes, you can’t avoid redirection errors caused by the ?m=1 parameter. Instead of worrying about fixing these, focus on making sure Google can crawl and index your site correctly.
  4. Request Indexing: Use Google Search Console's URL Inspection Tool. Submit the URL with the ?m=1 parameter and ask Google to index it. For example:
  5. https://www.trendloft.xyz/2024/09/minimax-best-realistic-ai-video.html?m=1
  6. Check Your Canonical Tags: If you're seeing errors related to alternate pages with correct canonical tags, Read my blog on how to fix them here . This can help ensure that Google indexes the right version of your page.

FAQs

What is the ?m=1 parameter in Blogger URLs? +
The ?m=1 parameter is added by Blogger to display the mobile version of a page.
Why does Google Search Console show redirection errors with the ?m=1 parameter? +
Google shows these errors because the ?m=1 parameter causes the URL to redirect to the mobile version, which can confuse Google’s crawler.
Can I fix the redirection error by using JavaScript to remove the ?m=1 parameter? +
No, removing the parameter with JavaScript only affects what users see in their browsers. It doesn’t fix the underlying issue, and Google may still encounter redirection errors.
Should I block URLs with the ?m=1 parameter in robots.txt?+
No, blocking these URLs can prevent Google from accessing the mobile version of your site, which could lead to more issues with indexing.
How should I set up my robots.txt file for Blogger?+
Your robots.txt file should allow all URLs to be crawled, including those with parameters like ?m=1.
What should I do if I see redirection errors in Google Search Console?+

Focus on making sure Google can crawl and index your site properly. You can ignore redirection errors if Google is crawling and indexing your pages correctly.

How can I request indexing for a mobile page?+
Use Google Search Console’s URL Inspection Tool to submit the URL with the ?m=1 parameter and request indexing.
can i remove the ?m=1 parameter from blogger permanently +
No you cannot remove the ?m=1 from blogger the only possible solution is to ignore it

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.