What is .HTML?m=1 in URL
The .html is the file extension. It tells us this is a HTML
file (as opposed to something like .docx for Microsoft Word file, .xlsx for MS
Excel document, etc)
.HTML means this is a Web file that contains HTML, hypertext
markup language. This is the language browsers use to display content.
The “m=1” means there is a parameter in the query string
that's name is "m "and it has a value of “1”
Is there any need to remove ?m=1 from URL in Blogging
There is no need to remove /?m=1 from the Blogger blog posts.
You can hide m=1 from the URLs served on mobile devices by implementing JavaScript
code to the theme file, but the JavaScript will only visually hide the m=1, not
remove it. You can check that in the HTTP header response as well as in the
Google Page Speed Insight tool. So, the JavaScript injection method will
disturb the on-Page SEO. But don’t worry, we found a perfect way to do this.
Desktop Version: https://www.example.com/
Mobile Version: https://www.example.com/?m=1
How to remove ?m=1 from URL in blogging
1. First you login to your blogger's dashboard.
2. Click on the Theme option.
3. Click on Edit HTML.
4. Click once inside the box you see.
5. Press Control Plus App (CTRL + F) from the keyboard.
Or go at the bottom of the box. (/body) (/html).
6. Paste the code above </body></html>
7. And to save the theme.
Copy the text below
<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> |
0 Comments