How To Remove ?m=1 From Blogger Blogspot URLs -We all know, when we host a website through Blogger platform, the domain URL address always ends with (/?m=1) which doesn’t looks Clean. I prefer Clean and Simple URLs because it makes the blogger blog urls user friendly. So in this post, i will guide you to how to remove ?m=1 from blogger blogspot urls.
So, to identify the Device properly Blogger blogspot Introduced the concept of ?m=1 parameter in the Blogger Blogspot URLs. So, whenever someone visit your blogger blog from mobile or tablet, it will show a URL structure like this one.
https://www.blogger4ever.net/?m=1
As most modern blogger themes use a responsive design and don't display separate versions for different screen sizes, there is no need for Changing this URL parameter in blogger.
Currently, there is no permanent fix to this problem, but you can display a clean URL to the visitors when they visit on your blog or website through a mobile device or tablet.
Step-2: Now click on the "Edit HTML"" option from the drop-down menu.
Step-3: After Entering into the html section press "Control + F" and Search For </head>
Step-4: Now, you have to copy the given code and just paste it above </head> tag. See image for better understanding.
Step-5: Now just click on Save button.
Congrats!! You are done, you have successfully removed ?m=1 from the blogger blogspot URL.
Conclusion: So Bloggers, Now you have learnt How To Remove ?m=1 From Blogger Blogspot URLs? if you have any issue regarding this post feel free to comment below.
You might also like: How To Fix 404 Error Page (Not Found) In Blogger Blog
How To Add Lazy Load Images In Blogger To Improve Page Speed
Why Blogger Shows ?m=1 In Mobile URLs?
Blogger is quite outdated platform now and earlier most of the blogger themes doesn't use the responsive design. Most themes show different versions for desktop and mobile device users.So, to identify the Device properly Blogger blogspot Introduced the concept of ?m=1 parameter in the Blogger Blogspot URLs. So, whenever someone visit your blogger blog from mobile or tablet, it will show a URL structure like this one.
https://www.blogger4ever.net/?m=1
As most modern blogger themes use a responsive design and don't display separate versions for different screen sizes, there is no need for Changing this URL parameter in blogger.
Currently, there is no permanent fix to this problem, but you can display a clean URL to the visitors when they visit on your blog or website through a mobile device or tablet.
How To Remove ?M=1 from Blogger Urls
Step-1: Open your Blogger Dashboard and click on the Theme option from left side.Step-2: Now click on the "Edit HTML"" option from the drop-down menu.
Step-3: After Entering into the html section press "Control + F" and Search For </head>
Step-4: Now, you have to copy the given code and just paste it above </head> tag. See image for better understanding.
JS Script
<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>
Step-5: Now just click on Save button.
Congrats!! You are done, you have successfully removed ?m=1 from the blogger blogspot URL.
How Does Above Script work?
Basically, This is an optimized javascript code that remove ?m=1 From Blogger. This means visitors/users will see a clean url without the ?m=1 suffix/parameter in the permalink in of your blogger blog whenever they visit your blog through their mobile device. This is the best way to fix it.Conclusion: So Bloggers, Now you have learnt How To Remove ?m=1 From Blogger Blogspot URLs? if you have any issue regarding this post feel free to comment below.
You might also like: How To Fix 404 Error Page (Not Found) In Blogger Blog
How To Add Lazy Load Images In Blogger To Improve Page Speed