Remove ?m=1 from URL in blogger 2021 website Get Code

 Easy way to Remove  ?m=1 from URL in blogger website

Remove ?m=1 from URL in blogger, Code for fix  ?m=1 problem

Hello friends how are you all? I hope all of you will be good. So friends, today I am going to tell you that how can you remove? M = 1 from your Blogger Blog URL (How to Remove? M = 1 From Blog URL).

If you run the website on Blogger, then you must have noticed one thing that when you open your site in a mobile, then after your website URL, you will come by? M = 1, which is By Default occurs in Blogger Websites.  remove? M = 1 from your blogger url

However, because of this there is no impact in your site or in its performance, but still all bloggers want to make their website as professional as possible and that is why you also want that whenever a mobile user visits your site He can only see the Site URL (https://www.bloggingludo.blogspot.com) rather than https://www.bloggingludo.blogspot.com/?m=1.


Step:-
  • First you login to your blogger dashboard.
  • Click on the Theme option.
  • Click on Edit HTML.
  • Click once inside the box you see.
  • Press (CTRL + F) from the keyboard.
  • Write this [ </body> in the search box you see in the corner, and press Enter.
  • Pressing Enter  it will take you to where it is paste the given code.
  • Copy the Code which I am providing.
  • Paste the code before the  </body>  end of the  Body section of HTML
  • After paste the Code Save your Template, 
  • After successfully save your code , Refresh the Blog website.



<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>
Remove ?m=1  this is very easy to implement on your blogger HTML edit section. And I Hope you are easily do this practical.

Post a Comment

2 Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. I am Bloggging on the topics like Technology . Make Sure You visit my website. 👉🏻 AlokJiKaBlog

    ReplyDelete