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

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.

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

Don't forget to leave a comment through our comment section below and also try as much as possible to share this post with your friends on various social media platforms.
About HowNaija Blog Hownaija.com.ng is a 'How To' Blog That Provides Information On A Wide Range Of Topics That Can Improve Our Knowledge.
Newer Posts Newer Posts Older Posts Older Posts

Related Posts


Comments

Post a comment
Kindly leave your comment(s) here!

Your comment(s) are appreciated.

Do Tick the Notify Me box to get notified when I reply your comment.