How To Remove "?m=1" From Blogger URL
In Desktop Version: https://www.example.com/In Mobile Version: https://www.example.com/?m=1
Steps to remove ?m=1 from blogger URL
<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>
4. Save the code.
The only problem in this method, JavaScript redirect is it works on client side. That means the Search Engines are not aware of the change, at the result its effect website on page SEO.
Note: I recommend you follow the default Blogger URL structure because Blogger team knows what is best for their mobile users.
FAQ
Question: Would it affect on SEO of website?
Answer: Yes, its effect your website SEO, i don't recommend this solution.
Question: ?m=1 in URL effect website SEO?
Answer: The appended url when viewing blogger blogs on mobile could not be removed. This is generated by system. So, it does not have any effect in search as search crawlers looks at the page canonical urls and not the web browser bar.
Question: Can I use Blogger on my phone?
Answer: Yes
Question: What is a blogger salary?
Please do not entering spam link in the comment box ConversionConversion EmoticonEmoticon