How to remove ?m=0 or ?m=1 from URLs in Blogger

What is ?m=0 or ?m=1 that appears at the end of Blogger URLs and how to fix it in an easy way.
Related Posts
What is ?m=0 or ?m=1 suffix?
?m=0, ?m=1 in Blogger URLs

If you pay attention when you visit any Blogger blog on the mobile phone, then there you will see, ?m=1 or ?m=0 in the page address (URL). Usually, it is a mobile view parameter.It doesn't affect your blog SEO in any condition and also, it doesn't affect in Google Search Console.

What does ?m=0 or ?m=1 indicate?

?m=0 suffix indicates that the blog is being accessed in Desktop Mode on a cellular/mobile device.

?m=1 suffix indicates that the blog has been accessed from Cellular/Mobile Mode.

Is it possible to remove ?m=0 or ?m=1 suffix from Blogger URLs?

No, It is also not practically possible for us to remove the m=1 from the Blogger URLs.

Note that you can hide ?m=0 or ?m=1 from your Blogger URLs in Mobile View by implementing javascript code to the theme file, but the javascript will visually hide the ?m=0 or ?m=1 suffix, not permanently remove it.

In my blog address, also shows this ?m=1 because I have not hidden it. If you want to hide it, so you need to follow the given steps with attention.


Hiding ?m=0 or ?m=1 from Blogger URLs
  1. First of all Login to your Blogger Dashboard.
  2. Click on the 'Theme' section.
  3. Backup your Theme, so you can restore it later if any problem occurs.
  4. Click on 'Edit HTML'.
  5. Press CTRL+F (Find) on your keyboard.
  6. Type </body> in the search box to locate the closing body tag.
  7. Identify the two scripts below. Copy the ?m=0 Code if your Blogger URLs have the ?m=0 suffix, and copy the ?m=1 Code if your Blogger URLs have the ?m=1 suffix. Don't be confused.
  8. Paste the copied code above </body>.
  9. Click on Save.
<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=0","&m=0") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("&m=0"));
window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf("?m=0","?m=0") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("?m=0"));
window.history.replaceState({}, document.title, clean_uri);
}
//]]>
</script>
<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>

Now refresh your Blogger Site, you will see there is no ?m=0 or ?m=1 suffix visible in your Blogger URLs.

Conclusion

That's It! I hope this post may helped you to hide ?m=0 or ?m=1 suffix from your Blogger URLs. Leave a comment or feedback down below. Thank you!

About the author

Tech With Deo
Content Creator | Web Designer | Graphic Designer

Subscribe now: Tech With Deo

1 comment

  1. Sayyed Raza
    Sayyed Raza
    Nice