Master guide: How to Fix /?m=1 From URL?
Stepwise guide: How to Fix the /?m=1 From URL in 2021?
By Nirmal, Techblogger
9th February, 2021
As you have noticed the /? m =1 in end of URL, I will tell you How to Fix the/?m=1 From URL in 2021. As Search Engine Optimization plays a very crucial role in ranking website at the top.
The step to do this is very easy as we just have to copy and paste the Java Script at the theme and do the On-Page SEO.
And I will help you to remove the /?m=1 from URl stepwise. Let’s get started with our article then.
Stepwise process to fix the /?m=1 in 2021?
I think it is one of the biggest problem faced by any blogger. As when we run our site on the desktop, we didn’t see /?m=1 in URL. But when we open our website on our mobile phones. We have the error of /?m=1 in URL added automatically.
To remove this /?m=1 from our website link. We just simply need to go blogger and then open the Theme option. Before making any changes to Theme please make sure to Back up your theme. As if we get error while editing we can restore our original theme again.
How do you get rid of /?m=1 in blogger?
The next thing is to just click on Edit HTML option from your blogger site and then find the </body> html tag in your theme. The </body> tag will be situated at second last tag above </html> in your theme like shown in Pic.
You just need to give “Enter” before the </body> then paste the script given below as shown in image.
|
<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> |
Just copy the entire script and then paste it above the </body> tag and then click on the save button of your theme.
How to fix the /?m=1 URL issue in Wordpress?
We can see this problem mainly with those bloggers who migrate from Google Blogger to Wordpress. You can have some 404 errors too in the crawl reports of search console too.
To solve this problem you can solve this with some editing in your .htaccess file. You can access this through FTP
Search #BEGIN Wordpress.
You need to paste this code above that:
|
# Fix the ?m=1 URL Issue <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{QUERY_STRING} ^m=1$ RewriteRule ^(.*)$ /$1? [R=301,L] </IfModule>
|
This is it after, just save .htaccess File, go to Webmaster tools and click on any URL of your website ending with /?m=1 and see whether it redirects to the right Wordpress or not?
Conclusion:
As you can see the live result of mine website too. Which is on blogger.
I hope that my article on How to Fix the/?m=1 From URL in 2021 helped you.
Make sure to subscribe our website “Technology news India” to never miss updates on “Latest tech updates”. And some extra reviews, tips and tricks etc. like this.
Further you can follow us on the Social Handles where I solve your query personally.



