Thumbnail article
How to remove ?m=1 or ?m=0 in blogspot
The suffix codes are only intended as a marker of the identity of the device used by someone to access a blog. If the suffix code shows ?m=1 it means that the visitor is accessing the blog via a mobile device, otherwise if the code shows ?m=0 it means that the visitor is accessing the blog via a PC device.One of the main reasons why ?m=1 suffix codes need to be removed is because it can cause duplicate content on a blog. It feels a little disturbing when we see the blog’s address in the browser’s URL field. Especially when someone shares our blog articles to other social media. When the code ?m=1 or ?m=0 appears on your blog, everyone will immediately guess that you are using Blogger to blog. In addition, we rarely see large company websites that display the code.You don’t need to display the code structure ?m=1 on the device because the URL structure has been adapted to the type of platform so that if forced to use the code tag ?m=1 you will see several 404 (Not Found) errors and Crawl Error reports from Google Search Console. That’s why the average big website doesn’t display the code ?m=1. Based on the page speed insight also show that if you have code ?m=1 on your blog then it will have an impact on the response load. It will works twice because there is a second link request. You can remove the suffix by following the step below.1. Open your Blogger.2. Then go to the Themes > Edit Html section. Then copy and paste the code below just above </body>
<script type='text/javascript'>
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>
3. Save the theme and you can try to access the blog. The suffix code will no longer be attached to your blog url.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *