Hello Everyone! Welcome Back to TechiFeed. I have written a new informative post for you to read. So, Keep reading to find out more!
You may already know that when a mobile device accesses a Blogger site, the URL has ?m=1. Most people don't like it because it looks strange.Remove ?m=1 from Blogger URL
This article will explain removing?m=1 from the Blogger's website. I'll also tell you whether you should put this on your site.
Why does Blogger put ?m=1 in the URL for mobile sites?
Most old Blogger themes don't use responsive design, and Blogger itself needs to be updated. Most themes have different versions for mobile and desktop.
Therefore, the Blogger inserts the ?m=1 parameter to the URL to correctly determine the Device. So, this is the structure of a URL. Let's say someone reads your blog on a phone or tablet.
https://www.techifeed.com/?m=1
This URL parameter doesn't need to be changed since most new themes are responsive and don't show different versions for different screen widths.
This URL parameter doesn't need to be changed since most modern themes are fully responsive and don't show different versions for different screen sizes.
To do this task, you need to use a script. Let's look at how you might fix the ?m=1 problem on the Blogger site.
How to Get Rid of Blogger ?m=1
These are the Steps for removing the ?m=1 at the end of your Blogger URL.
Step 1: Go to the dashboard of Blogger and click on "Theme."
Step 2: Select "Edit HTML" after clicking the Down arrow.
Step 3: Put the following code below the <head> tag or above the </body> tag.
<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>
The critical question is whether you should use a script to remove ?m=1 from your Blogger site.
Does it affect the SEO of your blog, and does it make the Blogger run faster?
The answer is trickier. Using this script won't remove ?m=1 from the blogger URL. It sends the user's browser back to the original URL instead.
If you want a clean URL, put it below the tag in your theme file.
Also, remember that it doesn't make a big difference in performance and that the server response time, not the redirect, affects how fast the page loads.
On our Blogger blog, I don't use this script. But there is no reason not to use this script.
Frequently Asked Questions
What is the "?m=1" in my Blogger URL?
The "?m=1" is a mobile version parameter that Blogger automatically adds to the URL when users access your blog from a mobile device.
Why do I want to remove the "?m=1" from my Blogger URL?
Removing the "?m=1" can improve the appearance of your URL and may also improve your search engine optimization (SEO) by eliminating duplicate content.
Will removing the "?m=1" from my Blogger URL affect my mobile readers?
Removing the "?m=1" will not affect your mobile readers. They will still be able to access your blog and view the mobile version of your blog.
Will removing the "?m=1" from my Blogger URL affect my analytics?
Removing the "?m=1" from your Blogger URL will not affect your analytics. It will still track the number of views on your blog, regardless of whether the "?m=1" is present in the URL.
Stay Connected
I hope you liked the above informative content. Please share this post and follow our blog for more great content.
If you have any questions or problems, feel free to ask in the comments section.
© Copyright: TechiFeed