Hello everyone, in this post I am going to Share about How To Remove '?m=1'
From Blogger In simple steps, and conver to your blog in a professional Website.
As you know Blogger shows ?m=1 in URL when someone visits the site from Mobile devices. It looks a little odd and most of the users don’t like this.
Why Blogger showing '?m=1' is in blogger url ?
Before understanding how to remove ?m=1 from blogger url, you need to know that why it is showing and what does this ?m=1 mean.
Generally, ?m=1 shown in blogger’s url, when your blog post or pages open in mobile devices.In simple language, ?m=1 is represents that your blog or website is opened in mobile devices. It will not show, if your blog or website open in desktop or computer.This small code will shown only when someone open your blog or websites in mobile devices.
Why you should remove ?m=1 from your blogger url -
You should also know that why you need to remove this small code from blogger url. Lets understand it.
To be honest, there is not such valid reason for it.The main reason is that owner does not like this in its blog or website url.And it also not look like professional as compare to the wordpress website.The second most important reason is that sometime it creates canonical error in search console.As whole url is same but when anyone visit from mobile then this ?m=1 creates some canonical error in Google Search Console.
Remove '?m=1' From Blogger :-
Follow these Steps To Remove '?m=1' From Blogger in any blogger blogs
Before editing the theme, take a backup so that you can restore your theme if any Problem happen .
Step : 1 - First Open Blogger.com.
Step : 2 - Then Login Your Blogger Account.
Step : 3 - Then Click on Theme Menu.
Step : 4 - Click on the Arrow Down icon located beside the 'Customize' button.
Step : 4 - After Click on Edit Html.
Step : 5 - Then Find </body>
Step : 6 - Then Copy code and Place Above Code </body>
<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>
Step :8 -Finaly Click onSave HTML And Done
Congratulation's ! Now you problem, get solved and you have successfully remove ?m=1 from the Blogger URL.
Conclusion:-
So My Dear Freinds, In this post, I shared How To Remove '?m=1' From Blogger. I hope this method of Removing '?m=1' From Blogger in blogger can be very useful for you and your blog. Thank you for visiting our website.
If You have any questions regarding to this post then put your valuable comment in comment section.
Source:
www.abhishekhub.com