How To Remove “?m=1” From Blogger URL 

There is a kind of problem in blogger ?m=1 It is visible in the URL of your own blog and the URL of all the posts.

In this you will also add Custom Domain, even then this problem remains as you can see in my URL, this URL is of mine when I was on Blogger.

https://codebarta.com/?m=1

Due to this, our URL does not look good and when we switch our blog from Blogger to WordPress, then a redirect error starts coming which you can see in your Google search console.

Its biggest disadvantage is that when your ?m=1 problem URL is indexed in Google and your post rank is then you switch from Blogger to WordPress then this rank will be of no use to you.

Because your URLs are changed by going to WordPress and you cannot create such URL with /?m=1 if you have Html in the last of your URL, then you can also create Html in WordPress but if /?m=1 then you cannot do it.

And this will happen that whenever a user clicks on your old URL, that post will not open, there will be an error of 404.

By the way, switching from Blogger to WordPress spoils all URLs, but you can fix it if you want, but if you have? an m=1 problem in your URL, then you cannot fix it even if you want.

That’s why it is very important for us to remove this ?m=1 problem, so let’s know how to fix Blogger ?m=1 problem.

How to fix Blogger ?m=1 Problem

There is no easy way to solve this problem, for this you have to go to the Html Coding of your theme and add a code there.

To overcome this problem, first, you have to go to your Blogger’s Dashboard and click on the theme option.

Then you have to click on Edit HTML, now you will see a lot of coding, in this coding you have to go to the bottom, and you will see </body> at the bottom.

Pasting the code given below just above this </body> After pasting the code, click on Save Theme, all you have to do is to remove the ?m=1 problem from the URL of your blog.

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

Note – Keep in mind that nothing else should change in this entire coding, otherwise there may be many problems in your blog.

I hope you have liked today’s article How To Fix Blogger ?m=1 Problem, in which your ?m=1 problem will be solved with the given code and method, if your problem is solved, then definitely tell us in the comment.

Leave a Comment