How to remove ?m=1 and ?m=0 in blogger
When you view your Blogger site in desktop mode or desktop, you see something like https://www.techwebmate.com.
But when you look at your Blogger site only on smartphone, you see something like https://www.techwebmate.com/?m=1.
Of these, nothing comes to your mind by looking at the URL of the desktop, because it does not contain ?m=1. But by looking at the URL containing the smartphone, the question comes to your mind how to remove it, because it has ?m=1.
So today in this article you will get information about how to remove ?m=1 to show your blogger site in a professional way without affecting SEO.
How to remove ?m=1 in blogger
Step one
- First of all, you search Blogger on Google and go to your Blog and then click on the Main Menu and select the Theme.
Step two
- On the Theme page you will find CUSTOMIZE written, there is a down arrow 🔽 below it, click on it. Then a pop up box will open in which you have to click on Edit HTML.
Step three
- Then you will see something like this, copy the <script> that I have given here and paste it just below the <head> tag. After this, click on More option and select Save.
<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>
Done