How to remove ?m=1 from Blogger Website

Today in this post we are going to discuss the main problem that bloggers face who create a blog in blogger.com is ?m=1.  When you create a new blog in a blogger and when you open your blog website on any smartphone then you will see this (www.yourblogname.com/?m=1) or (www.yurblogname.blogspot.com/?m=1) type of URL in your browser. Here your site is appended by ?m=1 parameter, which does not look good with your URL and it look unprofessional.

So today in this post I'm going to give you a solution of how to remove ?m=1 from a blogger website. Here I'll provide you one code which you have to add in your blog's HTML and then just you need to save this code and then boom, your problem will get solved! 


So read the complete post properly!


Steps to remove ?m=1 from blogger's website:

Step 1: Copy the code given below.

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

Step 2: Now open your blog on blogger.com.

remove ?m=1

Step 3: Go to Theme.

remove ?m=1

Step 4: Click on the drop-down menu and select edit HTML.

remove?m=1
remove ?m=1
Step 5: Search for </body> tag in html by pressing CTRL+F.

remove ?m=1

Step 6: Paste the copied code above </body> tag and just save.

remove ?m=1



Now I hope, you understood that how to remove ?m=1 from Blogger Website.

Avoid abusing comments. Peace ✌️ ✌️

Post a Comment

Avoid abusing comments. Peace ✌️ ✌️

Post a Comment (0)

Previous Post Next Post