How to Remove ?M=1 from URL in Blogger Permanently [110% Working]3 min read
![How to Remove ?M=1 from URL in Blogger Permanently [110% Working] 1 0001 3471617681 20210627 014043 0000](https://earnonlinesources.com/wp-content/uploads/2021/06/0001-3471617681_20210627_014043_0000.png)
How to Remove ?M=1 from URL in Blogger Permanently [110% Working]
Whenever we create a website on blogger, we often face this issue of “?m=1”. It is put at the end of the website URL in Blogger.
For example, yoursite.com/?m=1
Today, I’m going to show you the 5 easy-to-follow steps by which you can easily remove this “?m=1” from the URL of your Blogger site permanently.
And I’m sure that after following these steps, you can remove this “?m=1” from the URL permanently and then your site URL looks like this: yoursite.com
Why ?M=1 Shows In Blogger Site
This “?M=1” isn’t show when you open your blogger site on desktop or laptop, it only shows in the URL when you open your website in any mobile device.
Because “?M=1” represents the mobile device, so that you’ll see this in your URL only in mobile device and not in desktop or laptop.
Before we get started, I request you to take Backup first. Because if you did any mistake in placing the code on your site, then you already have a backup. And you can restore at anytime.
How to Remove ?M=1 from the URL [5 Steps]
Remove this “?M=1” permanently, by following these easy 5 steps:
Step 1.
At this step, you need to copy the code given below and make sure that you copy the whole code ( don’t miss start or end brackets):
<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>
To copy this code, go to the end of this article.
Step 2.
Now, go to your blogger dashboard and open the menu. Click on Theme.
Step 3.
Click on Edit HTML to open your HTML editor.
Step 4.
Go at last of your Blogger theme and you’ll get </body>
Step 5.
Now, paste the code you copy in the first step. Paste it above the closing body tag </body> as shown below:
Step 6.
Simply, click on the save button which is given at the top-right corner
Congrats!
You permanently remove “?M=1” from the URL of your Blogger site.
Over to you
After removing “?M=1” from the URL of your Blogger site, your site looks professional even in mobile device.
After following these steps, this “?M=1” removed permanently from your site.
<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>
0 Comments