How To Remove "?m=1" From Blogger URL

How To Remove "?m=1" From Blogger URL

In this we are discussing about how to remove ?m=1 from blogger URL and discussing about its effect SEO or not. Blogger always redirects mobile users to URLs ending with ?m=1. Blogger CMS works in a similar way. Even if we set up a responsive mobile friendly template, Blogger will force mobile users to /?m=1 or /?m=0 pages. The only way to avoid this redirection is to optimize your blogger template and run JavaScript redirects.



Content Management System serves canonical URL to desktop and canonical URL with m=1 to mobile users. This post will help you to fix the Blogger ?m=1 issue for the Blogger post.

In Desktop Version: https://www.example.com/
In Mobile Version: https://www.example.com/?m=1

Steps to remove ?m=1 from blogger URL

1. First go to dashboard and select theme option.
2. After that click on edit html option.
3. Now you have to add the below script just below the <head> tag.

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


4. Save the code. 

The only problem in this method, JavaScript redirect is it works on client side. That means the Search Engines are not aware of the change, at the result its effect website on page SEO.

Note: I recommend you follow the default Blogger URL structure because Blogger team knows what is best for their mobile users.

FAQ

Question: Would it affect on SEO of website?

Answer: Yes, its effect your website SEO, i don't recommend this solution.

Question: ?m=1 in URL effect website SEO?

Answer: The appended url when viewing blogger blogs on mobile could not be removed. This is generated by system. So, it does not have any effect in search as search crawlers looks at the page canonical urls and not the web browser bar. 

Question: Can I use Blogger on my phone?

Answer: Yes

Question: What is a blogger salary?

Answer: Its depend upon your efforts, how much you serious about your blogging carrier.

Question: How To fix the m 1 URL issue After migrating from Blogger to WordPress ?

Answer: Using above script to solve this problem.


Previous
Next Post »

Please do not entering spam link in the comment box ConversionConversion EmoticonEmoticon