Removing ?m=1 From Blogger


Removing m=1 From Blogger,Removing m=1 From Blogger, How To Remove Removing m=1 From Blogger, m=1 Is Showing In Url, How To Hide Removing m=1 From Blogger

So Helllo Guys ?m=1 Is Basically A Mobile View #Parameter. But In Google Webmaster It Show's Error Of Alternate page with proper canonical tag.


Today I Will tell You How To Remove ?m=1 From Blogger. You Follow 6 Simple Steps.



Step -1 : Go To Blogger Dashboard

Step -2 : Go To Theme Options

Step -3 : Click On Edit HTML

Step -4 : Press CTRL+F And Find </body>

Step -5 : Paste The Code Given Bellow

Step -6 : Paste That Code Above </body>


Copy Code :  


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