G-D00XZP85S3 How to get rid of m=1 in the blog URL - KangMus Official
Skip to content Skip to sidebar Skip to footer

How to get rid of m=1 in the blog URL

How to get rid of m=1 in the blog URL

In this article we will discuss information about how How to Remove m=1 in the Blog URL. Of course this is very related, considering the previous article also mentioned about m=1.


However, some of us may still not understand what m = 1 and the like, before going to the next section, first understand what m = 1 and the like


What is m=1?

m=1 is a parameter that is specified for users of mobile devices or mobile based devices. Where the ? M = 1 parameter will be automatic on each blog URL.


This parameter has several versions that are similar, namely ?m=0. Basically, the ?m=1 parameter is already part of the URL on every desktop device or PC. However, the system deliberately eliminates it, because it is considered not to have any significant effect.


What Does m=1 Affect for a Blog?

According to Matt Cutts, one of google's best software engineers, m=1 & m=0 is not a problem, nor does Google consider this a significant issue.


However, it's a good idea to use a method for attaching canonical rails to your template structure.


Then, how to get rid of m=1 in the blog URL?

You can use legacy methods that have been around for a long time, such as Via the Google WebMaster Tool, Utilizing Custom Robot.Txt, and the last one using Canonical Tag Rail.


In this article, we will only share a simple method that may still work today, namely using Javascript.


Following are the steps to delete ?m=1 in the Blog URL:


1. Log in to each Blogger account.

2. Click Themes or Templates

3. Click EDIT HTML (for older versions of Blogger)

4. Copy the following CSS code and paste it right above the Tag </head> or &lt;/head&gt;&lt;!-<head/>&gt;


<script type="text/javascript">
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>

5. Save Theme, and Done.


If you have confirmed that you have done the steps above, please make sure on your mobile device, whether you have changes or not. If you have any problems with this article, please contact us via the contact page.

Post a Comment for "How to get rid of m=1 in the blog URL"