Simple Steps to Remove ?m=1 and ?m=0 Parameter in Blogger URL

 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

cobietech.com, remove m=1 from url, Blogger m1

For us to get this done, lets follow this simple steps to integrate our JS code............. but as usual , DON'T FORGET TO BACKUP YOUR THEME

Step 1.Go Blogger.com  after it opens, Select from the list of your blogs, i.e if you have more than one blog
Step 2: Go to Theme  on from your Dashboard and click on the arrow down  
                                       NOTE: This arrow is only available in Blogger V3.  
Steps 3: From here click on Edit HTML 
Steps 4: Now Search for </head>  from the code box... You can use Ctrl + F on windows or Cmd + F on mac.


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.  

If you need more info on removing this  you can visit the google forum for more Also here is the effects of removing this
CobieGh

Web Designer,Digital Marketer, Tech Genius, & Overall A Content creator

Post a Comment

Previous Post Next Post