how to remove m=1 from blogger | ?m=1 problem solved


Hello friends! Today in this article we are going to talk about removing m=1 from blogger. And how to remove m=1 from blogger. We will know all these things in detail in this article. So stay with this article to know in more detail.



Friends, I give you 2 methods to remove ?m=1 from blogger URL. If you want to rank your Website then Search Engine Optimization is very important for it. Now if you do blogging and you choose the Blogger platform and you will face the issue of m=1 in your SEO. Don't worry about this because today I tell you the solution to this issue with two methods.

$ads={2}

How to remove /?m=1 from Blogger Blog

If you will not remove /?m=1 from your blogger blog. As google itself answered this differnet URL for mobile and destop. Now i will give you two methods with step by step explaination. Follow these steps carefully.

Method 1:

  • Login to your Blogger Account
  • Go to your Blogger Dashboard
  • Click on Theme Section
  • Now click on Customize arrow and then click on Edit HTML
  • Press Ctrl+F, you will see a search bar
  • Now search for <b:include data='blog' name='all-head-content'/>
  • Copy the code below

<b:if cond='data:blog.isMobileRequest == &quot;false&quot;'>
  &lt;link rel=&#39;alternate&#39; media=&#39;only screen and (max-width: 420px)&#39; href=&#39;<data:blog.canonicalUrl/>?m=1&#39;/&gt;
  &lt;link rel=&#39;alternate&#39; media=&#39;handheld&#39; href=&#39;<data:blog.canonicalUrl/>?m=1&#39;/&gt;
</b:if>

  • Paste this code below the <b:include data='blog' name='all-head-content'/>
  • Now click on Save theme icon.
$ads={2}

Method 2:

  • Login to your Blogger Account
  • Go to your Blogger Dashboard
  • Click on Theme Section
  • Now click on Customize arrow and then click on Edit HTML
  • Press Ctrl+F, you will see a search bar
  • Now search for </body>
  • Copy the code below

<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>

  • Paste this code above the </body>
  • Now click on Save theme icon.
$ads={2}

Now you have successfully remove /?m=1 from your Blogger URL. Now wait for few days this thing will also improve your Blog ranking. 

Note: These scripts are working only when you will enable Mobile theme for your Blog for mobile visitors from theme setting of your Blog Theme.


Conclusion:

Did you like this how to remove m=1 from a blogger? You must definitely give us your feedback in the comment box below. If you also want to give us any kind of Suggestion, then share your opinion with us in the Comment Box.


2 Comments

Please do not enter any spam link in the comment box.

  1. I do not have these codes in my theme then what to do?

    ReplyDelete
    Replies
    1. Send your email I will give you another code with steps.

      Delete

Post a Comment

Please do not enter any spam link in the comment box.