Whenever you view open a site or blog hosted on blogger , the URL of the site always has ?m=1 or ?m=0 at the end of the link..... and i know , including me that we always thought of removing it in order tomake our blog look better and more Professional. So Today i will show you the steps involved in removing ?m=1 and ?m=0 on from Blogspot mobile view URL to help your blog display in a more professional way without affecting SEO.The last time we talk of the effects of removing this, but if you've missed it then here is it go here to read more
Steps 5: After finding the the </head> Paste the below code just before it or After it.
[<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>]
Now save your Theme and then open the site on your phone........
BOOMM!!!!!!!!! Congratulations..... you have Successfully removed ?m=1 from your blog url..
if you find it difficult to implement this code, then kindly leave a comment below for a quick reply. thank you and Don't forget to share and subscribe.