How To Remove The URL ?m=1 On The Mobile Display

When you visit a website (Blogger Platform) on a cellphone, try to pay attention to the address bar that has paragraphs ?m=1 do you think want to delete the text? Therefore themequip sharing tips on removing ?m=1 in  the Blogspot address bar and help your blog be more professional without affecting SEO.

How To Remove The Code ?m=1 On The Blogger URL

Step 1. First you have go to the Blogger Dashboard > Themes > Edit HTML

Step 2. Ctrl+F and look for the code .
 </head>
Step 3. Now paste the below code just above  </head>
<script>/*<![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);}; var protocol=window.location.protocol.replace(/\:/g,''); if(protocol=='http'){ var url=window.location.href.replace('http','https'); window.location.replace(url);} /*]]>*/</script>
 Step 4. Click " Save " button and see the results. 

 If you have any problem, Comment below.

Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online