How to Remove Mobile Extension (?m=1) from Blogger URL

In this article you will learn How to Remove Mobile Extension (?m=1) from Blogger URL.

Bloggers who use the blogger.com platform for their blogs always get and extension at the end of their URL whenever the page is visited with a mobile device. Although this feature does not impact negatively on your blog, a few persons just want to get rid of it completely in order to make the URL look clean and responsive.
Well, there is a solution which actually works perfectly by removing this extension (?m=1) permanently on all your blogger pages.
This blogger mobile extension (?m=1) does not affect SEO in anyway, but most people prefer to have their pages loaded with it.
We will be using javascript to make this possible just follow the steps below, and in a few minutes you will be done.

How to Remove Mobile Extension (?m=1) from Blogger URL

Follow the steps below
1. From your blogger dashboard navigate to Themes and then proceed to Edit HTML.
2. From your HTML EDITOR PAGE find the <head> tag.
3. Then paste the below javascript BELOW/UNDER the <head> tag.
Copy the javascript below
<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>

 

How to Remove Mobile Extension (?m=1) from Blogger URL

That’s all, now you can now view your blog without the ?m=1 blogger URL extension.

RELATED:  How To Add Parallax Ads Widget on Blogger

Final words

This script does not have any negative impact on your page or SEO because the ?m=1 tag does not have any impact on your pages.

Watch video

78359ec12c81b3bd15d68d39aa16d85a?s=250&d=blank&r=g

 

Hownaijablog participates in the Amazon Services LLC Associates Program; therefore, some pages on this website may contain affiliate links. When you buy through these links, I may earn an affiliate commission at no extra cost to you.

Leave a Comment

Total
0
Share