Simple Steps To Remove "?m=1" Without Hurting On Your Blog SEO
Why we need to remove m=1 from the Blogger
URL, because if we want after some time to convert our blogger website into WordPress, At that time we facing many issues and unable to convert our blog into a WordPress theme.
- The m present in the URL represents that we are using that website in the mobile view. Obviously, we create our website as per desktop view and then convert into a mobile view, because it's necessary to our website is mobile-friendly, everyone has every time to find any information on our mobile instead of desktop.
- If you have moved your blog from blogger to self-hosted WordPress platform, then you likely to see a 404 or page not found error for URLs ending with ?m=1. These are blogger mobile version URLs.
- The second one, also it doesn't look good after every blog URL, if we copied the URL and want to send it to others, it also consists of m-1 without blog URL, it's very irrelevant.
- Here I describe how to remove m=1 from your blog URL, For this, I created HTML code that is helpful for removing this from the URL.
Open your Blogger dashboard and click on the Layout.Click on Add a Gadget and select HTML/JavaScript.Now copy the code that provided below, and paste it on the HTML/JavaScript Gadget that you have added recently.
<script>/*<![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);}; var protocol=window.location.protocol.replace(/\:/g,''); if(protocol=='http'){ var url=window.location.href.replace('http','https'); window.location.replace(url);} /*]]>*/</script>

Post a Comment