m=1 solve Blogger:- If you have a website in the blogger platform then you have seen this error while loading your website from smartphone or android phones or iPhone. This error have bad impact on revenue and traffic of your website. This types of error will not show good impression the viewers. This will not index your article posted into your website.
solve the m=1 error after url |
How to remove m=1 coming in blogger website Url
This types of error are seen while you are browsing your website from the smartphones. If you don't solve this issue as soon as possible then you later it will show the crawling error in the google adsense and ultimately hamper your website revenue. So, if you don't want revenue to decrease then follow the following steps:
Firstly you need to Enable your custom robot
For enabling your custom robot you need to bring open your blogger dashboard
- Select your website on which you want to add custom robot
- Then Scroll down to the bottom of settings
- You find there one option Crawlers and Indexing
- In this section you need to enable your custom robot.txt
- You need to generate your custom header tag just go to www.labnol.com/blogger/sitemap/ or
Paste the below code into robot.txt
User-agent: *
Disallow: /search
Allow: /
Sitemap: https://www.yourwebsite.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=500
In the above paste your website link replacing your website link including https
Continuing, Below custom robots.txt
robot.txt in your blogger |
Enable custom robots header tags
- Firstly Swipe to right side to enable.
- In Home page tags select : all and noodp
- In Archive and search page tags select: noindex and noodp
- In post and page tags select: all and noodp
How to solve ? m=1 in blogger website
This is the final step of solving the solution of showing ?m=1 after your website URL. The benefit of solving m=1 appearing problem is that Google Search console will not show the error while crawling in your website. Here are some of the steps in solving the errors.
Before solving m=1 error in blogger you see while browsing
In Desktop: https://www.yourwebsite.com/
In Mobile: https://www.yourwebsite.com/?m=1
- Firstly select your website
- Click on the Theme of your website
- In the My Theme
- You see customize right side click on down arrow
- Click the first option Backup : If your theme does not work in future then you could copy this back theme and paste.
- Click on Edit HTML
- There are lots of coding in the HTML section don't worry about the complex HTML codes
- Just scroll down to the bottom of the codes
- You need to paste the below HTML codes above </body>
<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>
Click on the floppy photo or save button.
It takes 2 to 3 minutes or according to our internet speed to save this codes
When you see update successful then you could check it has been implemented or not.
How to see the issue m=1 error solved or not in your website
- Go to your mobile
- Open your favorite browser
- Type your website link in the search section of the browser tab
- click on go option or press enter
- long press on the your link
- Then you see copy button
- Paste it to your mobile notepad or memo
- Now, you see that the issue has been solved