How to Remove ?m=1 and ?m=0 When URL access Through Mobile Devices | dn420

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

What is  ?m=1 and ?m=0 in Blog Url ?

 One of the reasons why you want to remove ?m=1 and ?m=0 when accessed via mobile devices is that I think you are already using a responsive theme on your blog/website.

How to Remove ?m=1 and ?m=0 When URL access Through Mobile Devices | dn420


 So that the mobile-only display provided by default is no longer used and to avoid duplicate title tags because there are other parameters that affect blog SEO.


Maybe here there are also those who want to correct incoming Disqus comments because the Disqus system reads parameters from blog pages accessed from ?m=1 and ?m=0. So that will make the difference from Disqus comments that are entered when accessed via ?m=1 can not be read on the desktop and laptop.


To remove that, how to remove the blog URL parameter on mobile devices? Alright, For that please follow these easy steps below.

How to Remove ?m=1 and ?m=0 When URL Accessed Through Mobile Devices?

Warning: You can use this script, but use it at your own risk

For that, flowThe first step, open Blogger Dashboard > Then Click the Theme menu > Next Click Edit HTML next to Customize > Then find and add the code below right before </body>

<script>
//<![CDATA[
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>

Then click on the Save theme button and you are done. Yes, that's all you need to add that its. 

By adding this code, now your blog URL will not display the parameters ?m=1 and ?m=0 when the URL is accessed via a mobile device.

That's how to remove ?m=1 and ?m=0 when accessed via mobile devices that Droidnur can share. Hope it helps and is important to you.

Conclusion:

Thanks for reading the  How to Remove ?m=1 and ?m=0 When URL access Through Mobile Devices | dn420 post for so long. If you have an opinion, don't forget to let us know in the comments. And if the post seems helpful, don't forget to heal your friends. Thanks.


Go to Link

About the Author

Droidnur is the Founder & CEO of droidnur.eu.org & Publisher with an Entrepreneur. He is Also a Collage Student & Full Time Passionate Blogger.

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.