How to remove m=1 in Blogspot blog's
Welcome back guys.
So, in this post, I will guide you on how to remove ?m=1 from blogger URL, and make a simple professional URL.
you can See when you visit any Blogger blog on the mobile phone, then there will show you, "?m=1" in the respective page address (URL).
Why it's(?m=1) present?
Usually, it is a mobile view parameter.
It was not added by you or the theme developer, or anyone else, it was automatically added by Blogger CMS. We can not see "?m=1" in the laptop version(check it out).
You can also notice "?m=0", it appears when you are having null Post on your website. It is also automatically generated by the blogger itself. You don't need to worry about it.
This will affect your SEO?
No.You don't need to remove it. It is in the context of SEO. Means if you don't remove ?m=1 it will not affect your blog SEO in any condition and also, it doesn't affect in Google search console (webmaster tool).
But you could remove it only for making a user-friendly blog posts URL. So let's see how we are going to remove it, if actually we are going to hide it.
Steps to remove "?m=1" in blogspot blog's
We can remove by two different methods.
Firstly, simply follow the steps
STEP:#1
Open your Blogger dashboard and click on the Layout.
STEP:#2
Click on Add a Gadget and select HTML/JavaScript. Don't give any tittle.
STEP:#3
Now copy the code that provided below, and paste it on the HTML/JavaScript Gadget that you have added recently.
Secondly we can add the following code just before the </body> tag on your website template.
<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>





Comments