How to remove m=1 from URL in website

 

How to remove m=1 from URL in website

How to remove m=1 from URL in website : Whenever we host a website in blogger, the URL of that website shows fine on the desktop. But when you see that website on mobile, then ?m=1 will be behind the URL on mobile.

Whenever you open your website on mobile, the URL of the website gets redirected. As if

You will not face any problem with this.

There is no problem with this in Google Search Console. Because of the canonical tag that you guys already use in the theme. Already o indicates your main URL only. But if you want your website URL to look the same on a desktop as well as on mobile. So you can use it.

How to remove m=1 from URL in website

  • First, you log in to your blogger dashboard.
  • Click on the Theme option.
  • Click on Edit HTML.
  • Click once inside the box that appears in front of you.
  • Press Control Plus App (CTRL + F) from the keyboard. (If you do not understand then see photo 1)
  • Type this in the search box you see in the corner, and press enter. (If you do not understand then see photo 2)
  • Pressing enter will take you where it is written.
  • Now you have to paste the court given below on it. (If you do not understand then see photo 3)
  • And save the theme.

<script type=’text/javascript’>

//<![CDATA[

var uri = window.location.toString();

if (uri.indexOf(“%3D”,”%3D”) > 0) {

var clean_uri = uri.substring(0, uri.indexOf(“%3D”));

window.history.replaceState({}, document.title, clean_uri);

}

var uri = window.location.toString();

if (uri.indexOf(“%3D%3D”,”%3D%3D”) > 0) {

var clean_uri = uri.substring(0, uri.indexOf(“%3D%3D”));

window.history.replaceState({}, document.title, clean_uri);

}

var uri = window.location.toString();

if (uri.indexOf(“&m=1″,”&m=1”) > 0) {

var clean_uri = uri.substring(0, uri.indexOf(“&m=1”));

window.history.replaceState({}, document.title, clean_uri);

}

var uri = window.location.toString();

if (uri.indexOf(“?m=1″,”?m=1″) > 0) {

var clean_uri = uri.substring(0, uri.indexOf(“?m=1”));

window.history.replaceState({}, document.title, clean_uri);

}

//]]>

</script>

 

How to remove m=1 from URL in website
How to remove m=1 from URL in website

second method

No, It is practically impossible to remove the m=1 from the Blogger URLs, as we do not have access to the root of the Blogger. But there is no need to remove /?m=1 from the Blogger blog posts.

You can hide m=1 from the URLs served on mobile devices by implementing javascript code to the theme file, but the javascript will only visually hide the m=1, not remove it. You can check that in the HTTP header response and the Google PageSpeed Insight tool. So the javascript injection method will disturb the on-Page SEO. But don’t worry, we found a perfect way to do this.

The Blogger serves different URLs for mobile and desktop devices with and without m=1, respectively. It’s the same case of different URLs for the same post. In such a case, we can declare that Google should treat both canonical URL and URL with m=1 as the same

Solve the issue of Blogger – Duplicate, submitted URL not selected as canonical

⛔ As we already discussed, if you want to remove m=1 from the Blogger blog URL, then this article is not for you. I’ll guide you on how to solve the issue with the help of the Google Search Console

You can solve the SEO problem of indexing the URL, Duplicate, submitted URL not selected as canonical. This problem occurs because the server serves different URLs for mobile and desktop. So we’ll declare to the search console that both URLs must treat as the same.

How to solve Blogger m=1 issue

You can use the google page technique for different URLs for the same page (one for mobile and another for PC). In this method, we inform Google bots that content available at both URLs https://www.example.com/ and https://www.example.com/?m=1 is the same.

We can use the Google search console parameter tool to perform this action. The Google search engine recommends these settings under the crawling of parameterized duplicate content. And completely SEO and search engine friendly.

So we keep the m=1 for Blogger but notify Google that treats both URLs as the same. You can refer to the link provided above.

Change URL Parameters to solve this issue.

Open the Google Search Console dashboard, click on Legacy tools, and report > URL Parameters.

You’ll redirect to a new tab for URL Parameters of Google Search Console.

You may face an error “Legacy reports and tools are not available for domain properties“? This error occurs because the blog has been verified as a Domain property. To Solve this, verify your domain as a URL prefix in Google Search Console.

You will land on the URL parameter page of GSC.

If you’ve been using Blogger Blogspot blog for a long time, you may see a similar interface as displayed above. Now, check the “m” parameter, is it listed or not? If listed, it’s left on google that Let Googlebot Decide, but we’ve to change this. Click on Edit, and you’ll see a pop-up window to define that parameter setting:

  1. Select: No, it doesn’t affect pages content
  2. Save the settings.

For new Blogger users, you’ve to add the “m” parameter as

  1. Please enter the value here; that will be “m” in our case.
  2. If the page is not affecting the content, then choosing no doesn’t affect it.

Now save these settings, and wait for a few days; all errors of “Duplicate, submitted URL not selected as canonical” will be removed due to the Blogger m=1 issue.

If you’re using Adsense Ads for monetization, follow this method to boost Adsense revenue by 150 to 200%. Learn how to improve the Blogger SEO and the best practices available.

Don’t add any javascript to remove m=1 from the Blogger blog URLs. But if you did, check the header response of the website for mobile. This means that you made things worst from the SEO point of view. Please keep the above things in mind while making such changes

Additional Tips: What is more important for any blog is the theme. Google supports HTML5 themes. You can also try our Blogger blog themes that are completely SEO-friendly.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top