New Blogger Easily Remove ?m=1 from Your Website with Code

m=1 in URL is common error in all Blogger new sites. This error appears when searching for a site created in Blogger on mobile. I wrote this post for bloggers who want to create a site in Blogger.

Due to this error, there are many problems in ranking the post in Google. If we search a website or link, it is followed by /?m=1 word which is an error. This error can be removed from coding within Blogger.

How to remove ?m=1 from Blogger URL

Steps –

1 Login Blogger

2 Click Theme Option

3 Click Edit HTML

4 Click inside Coding

5 Find </body> Tag or CTRL + F and find </body>

6 Copy the Below Code

7 Paste over the </body> tag

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>

</body>

Download This File Click Here…...

Knowledge of HTML coding can work well in Blogger. Editing the theme is important in Blogger. WordPress has a feature of plugins so that any error can be easily removed. Blogger does not have any plugins so coding is a must.

5 Best Keyword Research Tools for SEO

How to Secure My Facebook Account in 2020

1 thought on “New Blogger Easily Remove ?m=1 from Your Website with Code”

Leave a Comment

error: Thank You