Header Ads Widget

How to remove ?m=1 from Url in Blogger 2021 | Working 100%



How to remove ?m=1 from URL in blogger. Whenever we host a website in Blogger, the URL of that website shows 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
How to remove ?m=1 in Url

Whenever you open your website on mobile, the URL of the website gets redirected. Such as https://www.thegeneralknowledges.com/, https://www.thegeneralknowledges.com/?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 O 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 in Hindi

  1. First you login to your blogger's dashboard.
  2. Click on the Theme option.
  3. Click on Edit HTML.
  4. Click once inside the box you see.
  5. Press Control Plus App (CTRL + F) from the keyboard. (If you don't understand, see the photo 1)
  6. Write down the search box you see in the corner and press enter. (If you don't understand, see the photo 2)
  7. Pressing Enter will take you to where it is written.
  8. Now you have to paste the code below. (If you do not understand, see the photo 3)
  9. And to save the theme.

<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>

HTML code paste here

Now Just Save And Go To Mobile and check your M=1 URL In Blogger Removed enjoy witout M=1 URL 

Thank You


Post a Comment

0 Comments