How to remove ?m=1 From Blogger

 


To remove ?m=1 from your blog address you need to follow these steps:

  1. Go to Blogger
  2. Go to Theme
  3. Click on edit HTML
  4. Press CTRL+F and type </body> to find </body> tag.
  5. Copy the code given below.
  6. Pate that code above </body> tag.


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

I’m Shivam — a free-spirit with a passion for technology, blogging, and photography.

Previous Post Next Post