You have a blogger website when you see that website on mobile, the mobile will put? m=1 behind the URL. How to remove ?m=1 from URL in blogger.
never host a website in Blogger, the URL of that website displays fine on the desktop. But when you see that website on mobile, the mobile will put? m=1 behind the URL.
How to remove ?m=1 from URL in blogger
Whenever you open your website on mobile, the URL of the website gets redirected. Such as Www. piotechindia.in/ to Www.piotechindia.in/?m=1
You will not have any problem with this. There is no problem with this in the Google search console. Because the theme you use is the canonical tag in the Allredy theme. Already Indicates your main URL. But if you want your website’s URL to appear on the desktop as it appears on mobile. So you can use it.
How to remove ?m=1 from URL in blogger:
Step 1
<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 2
Go to Blogger Theme Section And Then Click On Edit Html Button. Click On Html Coding And Search For </body> Tag in your Html Coding.
Step 3
Paste This Code Before </body> tag in your Theme Html Coding Section.
Step 4
Save The Theme And Refresh Your Blogger Blog. ?m=1 Will be removed from your URL.
Congratulation Remove ?m=1 From Blogger Url
Thanks for visiting Pio
Share with your Friends