Search Suggest

Remove ?m=1 from blogger post url

1 min read

Remove ?m=1 from blogger post url



Here you will learn How to remove ?m=1 from blogger post url to get better website experiences. Also you will get good user performance.



Go To Blogger Dashboard and click on Edit HTML then Follow below instruction and paste the codes accordingly:






Find  <head> in you html code and paste below code just below it_




<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>


if above code is not working then add / paste bleow ocde_


<script>/*<![CDATA[*/ 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>





Then save your template and you are all done to see the magic part in your site/posts URL.

 

Item Reviewed: Remove ?m=1 from blogger post url Description: Rating: 4.7 Reviewed By:

Post a Comment

Blog Archive / Click to See All Posts

Everyone Needs Everything!