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

As you know Blogger is the second largest CMS platform used by bloggers after WordPress and it is a completely free platform. On Blogger you don’t have to invest a single penny to start your blog as Google provides you the subdomain and the hosting absolutely free.

Advertisement

With these advantages, Blogger has some disadvantages too. For example, it still does not support any external plugin, it has limited themes for you, and even those themes are not user-friendly. In addition, you have to do all the customization job manually.

One of its disadvantages is the different URL structure for PC and Mobile. While on PC, your blog opens with the normal URL simultaneously on mobile, an “m=1” symbol is attached to the URL.

Advertisement

Does “?m=1” on Blogger affects your SEO

The straight answer is no, it does not affect your SEO any way and this is not added by any specific theme. But having the ?m=1 symbol after the URL makes it look unprofessional and lack of user friendly.

So Can you remove this from your Blog URL

Yes, certainly you can remove this from your blog. just follow these simple steps.

Advertisement

Log in to your Blogger and then go to your dashboard. You will find the Theme option there, just click on it.

blogger

You will be prompted to the theme editing page, just click the Customize button and take a Back up incase anything goes wrong.

blogger

Once you stored the back up file then click the Edit as HTML button from the dropdown. A window having HTML codes will open like below.

image 2

Now click at any point in the window and the press “CTRL+F” from your keyboard. A search bar will open in bdront of you.

In the search bar just type “</body>” , this the body closing tag and you will find this almost at the end of the code.

Now just copy the below code and paste it over the </body> tag and then hit the Save button on the to-right corner. Your theme will be saved and now you can see there is no “?m=1” symbol after the URL when you open your blog on any mobile device.

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

Also read

How to create Contact us page for blogger

Best Indian blog to read before you start blogging

Leave a Comment