How to Remove ?m=1 and ?m=0 from Blogger URL |Step By Step Guide- in 2024 (100%Fixed)

Remove ?m=1 and ?m=0 from Blogger


If you're using Blogger, you might see weird things like "?m=1" or "?m=0" at the end of your web addresses. These are about mobile views, but they don't look nice and can make your blog seem less professional. Luckily, getting rid of them is easier than you think. This guide will show you how to make your Blogger links look cleaner and give your blog a better appearance.

How to Remove ?m=1 and ?m=0 from Blogger URL |Step By Step Guide 

Step 1: Accessing Your Blogger Dashboard

To get started, log in to your Blogger account and access your blog's dashboard. Once you're there, select the blog you want to work on.

Step 2: Navigating to the Theme Settings

In the left sidebar, click on "Theme." This will take you to the section where you can customize your blog's appearance.

Step 3: Selecting Edit HTML

Within the Theme section, you'll find the "Edit HTML" option. Click on it to access the HTML code of your blog's theme.

Step 4: Finding the </body> Tag 

Press “Control + F”and search for </body>

Step 5:  Now, copy the code provided below and paste it above the </body> tag.



If everything looks good in the preview, go ahead and publish your changes. Your blog should now have cleaner, more user-friendly URLs.

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

Conclusion:

Congratulations! You've successfully removed the "?m=1" and "?m=0" parameters from your Blogger URLs. This small adjustment can make a significant difference in the overall appearance and professionalism of your blog. Remember to regularly check your blog's performance and make any necessary updates to keep it running smoothly. Happy blogging!

Comments