How to Remove Code ?m = 1 and ?m = 0 from Blog URL

How to Remove Code ?m = 1 and ?m = 0 from Blog URL

A blogger definitely wants to have everything that is user-friendly and an attractive and responsive appearance for that, there are various ways to find a good `responsive and SEO friendly blogger template for a blog. However, have you ever noticed the blog has ?m = 1 or ?m = 0 at the end of the URL? What does it mean? How to remove it?

?m = 1 and ?m = 0 mean in the Blogspot blog URL ?

A URL that ends with ?m = 1 indicates that someone is accessing the blog site from a mobile device.

A URL that ends with ?m = 0 indicates that someone is accessing the blog site from a computer or laptop.

 Oh yes, the code ?m = 0 does not appear if the blog is visited from a computer.

Actually, this is not a big problem, but at least it has to be fixed to get URL parameters that are user-friendly.

The URL parameter is the identity marker of a blog which is usually not installed by the template designer or Author, for example, 

<link expr: href = 'data: blog.url' rel = 'canonical' /> 

if it is installed on your blog template there should be no problem with this matter.

To solve the URL code? m = 1 and? m = 0 for blogger sites, there are three ways that will be shared later.

How to Remove Code ?m = 1 and ?m = 0 in the Blog URL

1. Using Javascript code

1. Login into Blogger dashboard
2. Select the Themes menu  ➤ Edit HTML
3. Copy the following javascript code and paste it just above the </body> tag
<script type="text/javascript">
var uri = window.location.toString();if (uri.indexOf(&quot;?m=1&quot;,&quot;?m=1&quot;) &gt; 0) {var clean_uri = uri.substring(0, uri.indexOf(&quot;?m=1&quot;));window.history.replaceState({}, document.title, clean_uri);}
4. Save the theme and please access the blog then refresh.

2. Using the canonical tag

In essence, this code aims to address duplicate content. Generally, this code is already installed blogger template, both free and premium.
However, check again. If it is not installed follow these steps:
1. Login into Blogger dashboard
2. Select the Themes menu  ➤ Edit HTML
3. Copy the following code and paste it just below the <head> tag

<link expr: href = 'data: blog.url' rel = 'canonical' /> 

4. Save the theme

Usually, the Rel-Canonical code is added exactly above the UTF 8 Charset code or Initial Scale - Maximum Scale 1.0. So, just adjust it.

3. Using Custom Robot.Txt

1. Login into Blogger dashboard
1. SettingsSearch Preferences
2. Activate or click Enable Custom Robot.txt features and services
3. Copy the code below and paste it into the Custom Robot column:
User-agent: Mediapartners-Google
User-agent: *
Disallow: /search 
Disallow: /?m=0
Disallow: /?m=1
Allow: /                    
Note: change the above-highlighted text with your blog URL.
4. Save the settings and take a look and see the blog site URL code.

This is how to fix and solve code m=0 and m=1on Blogspot easily and quickly.
Please share this post on social media platforms with your friends.
Still, if you have any trouble please let me know in the comment section. 
👍Good Luck!!!

Dgntemplate - High Quality Blogger Templates 2021

Download Latest Free Blogger Templates to Make your blog Professional and Increase your Blog Ranking!
Don't miss the latest template notification from Dgntemplate