I have seen around the internet (Google, Blogger help ) many Bloggers has asked questions on "how to remove?m=1 from blogger", but no one has any responded. So, I think why I am not resolving this issue! And finally, I have got a solution for this. Although I have got a solution for this, it was complicated to do.
Why you need to remove "?m=1" from blogger URL?
You don't need to remove it in the context of SEO. Means if you don't remove ?m=1 it will not affect your blog SEO in any condition and also, it doesn't affect in Google search console (webmaster tool). But you could remove it only for making a user-friendly blog posts URL.
Many newbies bloggers seem that it is an issue with the template, but the reality was completely different from their thoughts. It was not added by you (the theme developer), or anyone else, it was automatically added by Blogger CMS. But it depends on you whether you remove it or not.
In my blog address, also shows this ?m=1 because I have not removed it. If you want to remove it, so you need to follow the given steps with attention.
4 step to remove ?m=1 from blogger URL
- Open your Blogger dashboard and click on the Layout.
- Click on Add a Gadget and select HTML/JavaScript
<script>/*<![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);}; var protocol=window.location.protocol.replace(/\:/g,''); if(protocol=='http'){ var url=window.location.href.replace('http','https'); window.location.replace(url);} /*]]>*/</script>
- Save the Gadget and enjoy ?m=1 free URL.