How to remove ?m=1 from URL in blogger

How to remove ?m=1 from URL in blogger 2022 method

How to remove ?m=1 from URL in blogger: Whenever we host a website in Blogger, the URL of that website displays fine on the desktop. But when you see that website on mobile, the mobile will put ?m=1 behind the URL.

Whenever you open your website on mobile, the URL of the website gets redirected. Such as https://www.techforftcp.com/ https://www.techforftcp.com/?m=1 | You will not have any problem with this. There is no problem with this in the Google search console.

Because the theme you use is the canonical tag in the Allredy theme. Already O Indicates your main URL. But if you want your website’s URL to appear on the desktop as it appears on mobile. So you can use it and know How to remove ?m=1 from URL in blogger.

How to remove ?m=1 from URL in blogger

Table of Contents

Step 1: Firstly, please open your Blogger dashboard.

Step2: Then you have to go Theme option, and please backup your theme by clicking the backup option under the theme menu’s CUSTOMIZE BUTTON. If you did not understand follow the photos or follow my youtube video link at the end of the article.

Step 3: In the theme menu, under the CUSTOMIZE BUTTON you find EDIT HTML, CLICK ON IT.

Step 4: After that, you arrived at the code edit page of your theme. Just click on the code and press ctrl+f to find the </body> tag.

Step 5: When you find this tag, put the code above the </body> tag, and save it. You found the code below. If you did not understand follow the photos or follow my youtube video link at the end of the article.

<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>
remove ?m=1 from URL in blogger
remove ?m=1 from URL in blogger

After using this code and method you can easily remove ?m=1 from URL in blogger website. You also read this article How to add breaking news ticker in blogger template 2022.

Conclusion

In this article, I tried to understand to you How to remove ?m=1 from the URL in blogger. You can follow these steps easily you remove ?m=1 from your website URL.

I hope you enjoy this article. If you have any confusion don’t hesitate to comment.

Leave a Comment

Your email address will not be published.