We all know that "simplicity is beauty". So, today in this post, I will guide you on how to remove "?m=1" from the blogger website URL and make a good and simple professional website/URL. If you pay attention when you visit any Blogspot blog website on your mobile device/phone, then there you will see, "?m=1" in the page domain address/website (URL). Usually, it is a mobile view parameter.
I have seen different websites throughout the internet, many Bloggers asking the same questions again and again on "how to remove "?m=1" from blogger website URL", but no one has given the best results. So, I think why not I am resolving this issue today! And finally, I have got a solution code for this. Although I have got a solution for this, it was complicated to do.
Why do you need to remove "?m=1" from the blogger URL?
If you are thinking it affects SEO, so you don't need to remove it for just the sake of SEO. This means if you don't remove "?m=1" it will not affect your blog website 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 post URL.
Steps for Removing "?m=1" from The Blogger:
- Open your Blogger dashboard and click on the Layout.
- Click on Add a Gadget and select HTML/JavaScript.
- Now copy the code provided below and paste it on the HTML/JavaScript Gadget that you have added recently.
- Save the Gadget and enjoy "?m=1" free URL.
<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>
I hope you have successfully added this code to your blog. If you like my guide on how to remove "?m=1" from blogger, please leave a comment about our work and tell us your opinion. We like to know your thoughts.