How to Disable ?m=1,?m=0 Suffix In Blogger Blog

When we visit Blogger blog on mobile devices it shows a ?m=1 or ?m=0 suffix in URL. This Suffix not look good if you are creating a professional blog.

Ex -
https://www.blog-name.blogspot.com/?m=1

remove ?m=1 suffix in URL
In this blog post we are going to tell you a step by step procedure to remove this Suffix from your blog's URL without affecting SEO of the blog. You can remove it by just pasting a simple code in the HTML section in just a few steps.

  1. First log in to your Blogger account.
  2. Now go to the theme section and click on Edit HTML. 
  3. Copy given javascript code and paste it in between <head>...</head> or <body>...</body> then save Changes.
  4. Now click to View your blog. 
  5. ?m=1 suffix is removed from blogger URL. 

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>

0/Post a Comment/Comments

Previous Post Next Post