How to remove ?m=1 from blogger URL | Remove ?m=1 in 5 Steps

how to remove ?m=1 from blogger url, how to remove ?m=1 from url

In this post we will see how we can remove the ?m=1 from your website URL made on blogger. There are only 5 steps to make you site's URL attractive.

{tocify} $title={Table of Contents}

What is ?m=1 error?

It is an indication that the website/blog is made on blogger and opened in mobile phone.

It something looks like this:

example of ?m=1 error in blogger, ?m=1 error example, uinquetech.xyz

It does not create a problem in SEO, but it looks odd and whenever the link is shared it appears there.

It only appears in the mobile browser, but when you open it in Computer or PC, you will see that it is not there.

Also read:


How to remove ?m=1 from URL?

It can only be removed writing some line of code in your theme's HTML section.

Worry not. I will provide you both the code and way to apply it.

Follow these simple steps to remove ?m=1 from URL.

I am warning you that download a backup of you theme before performing these steps. {alertWarning}

When you are on MOBILE.

Step 1: Sign in to blogger.com with your email account.

Step 2: Click on the three horizontal line on the top left corner of your dashboard.

how to remove the ?m=1 error from blogger url, uinquetech.xyz

Step 3: Click on theme and then on the drop-down arrow present beside the costumize button.

how to remove the ?m=1 error from blogger url, uinquetech.xyz

Step 4: Click on Edit HTML. After that on new window scroll down to the end of the coding.

how to remove the ?m=1 error from blogger url, uinquetech.xyz

Step 5: Now paste the below given code jsut above the </body> tag and save it.

how to remove the ?m=1 error from blogger url, uinquetech.xyz

Now open your website and see the URL. BOOM congratulations for your attractive and a good looking web address.

how to remove the ?m=1 error from blogger url, uinquetech.xyz

CODE

<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> {codeBox}


When you are on PC.

Step 1: Sign in to blogger.com with your email account.

Step 3: Click on theme and then on the three dots present beside the costumize button.

Step 4: Click on Edit HTML. After that on new window scroll down to the end of the coding or click anywhere in the coding and pres CTRL+F and find </body>.

Step 5: Now paste the same code given above jsut above the </body> tag and save it.


Now try to open your website in mobile and see the URL. BOOM congratulations for your attractive and a good looking web address.


If you liked the post then please share it with your friends and Don't forget to comment how you liked the post.

Aniket Kumar Singh

Aniket Kumar Singh, the founder and author of this blog, is a student of class 11th from Science stream - PCM Who lives in Muzaffarpur, Bihar, India.

2 Comments

Please Don't Spam

Post a Comment
Previous Post Next Post