How to Remove “?m=1” from Blogger URL (Easy Fix)

Blogger is a popular platform for creating and managing blogs. If you've noticed that your blog URLs have a pesky "?m=1" at the end and you want to get rid of it, you're in the right place. In this guide, we'll walk through a simple and easy method to remove "?m=1" from your Blogger URL without getting into complex technical details.

Understanding the "?m=1" in Blogger URLs

Before we dive into the solution, let's understand why Blogger URLs sometimes have "?m=1" appended to them. This addition is often associated with the mobile view of your blog. When someone accesses your blog from a mobile device, Blogger automatically adds "?m=1" to the URL to show the mobile-friendly version. However, some bloggers prefer a cleaner look for their URLs and want to remove this extra bit.

Why Remove "?m=1" from Your Blogger URL?

There are a few reasons why you might want to remove "?m=1" from your Blogger URL:

  • Cleaner Appearance: Removing "?m=1" can make your URLs look cleaner and more professional, especially if you are sharing links with your audience.
  • Consistent Branding: If you have a specific branding strategy for your blog, having a uniform URL structure contributes to a more cohesive and polished image.
  • Personal Preference: Some bloggers simply prefer the standard URL without the mobile parameter, and that's perfectly okay.

Now, let's move on to the easy method to remove "?m=1" from your Blogger URL.

Step 1: Access Your Blogger Dashboard

Log in to your Blogger account and navigate to the dashboard where you manage your blog.

Step 2: Go to Theme Settings

On the left-hand side, click on "Theme" to access the theme settings for your blog.

Step 3: Edit HTML

In the theme settings, you'll find an "Edit HTML" option. Click on it to open the HTML editor.

Step 4: Locate the "b:include" Tag

Look for a line of code that includes the "b:include" tag. This tag is responsible for rendering various components of your blog, including the mobile view.
HTML
<b:include data='blog' name='all-head-content'/>

Step 5: Add a Conditional Tag

Right after the "b:include" tag, add the following conditional tag:
HTML
<b:if cond='data:blog.isMobileRequest != "false"'>
  <meta content='noindex, nofollow' name='robots'/>
  <script type='text/javascript'>
    location.href = data:blog.homepageUrl;
  </script>
</b:if>

This code checks if the request is from a mobile device, and if it is, it redirects to the homepage URL without the "?m=1" parameter.

Step 6: Save Theme Changes

After adding the conditional tag, click on the "Save theme" button to save your changes.

Step 7: Clear Browser Cache

To ensure that the changes take effect, it's a good idea to clear your browser cache. This step helps prevent any lingering effects from the previous settings.

Step 8: Test Your Blog URL

Visit your blog in a new tab or window and check the URL. You should notice that the "?m=1" is no longer present, especially when viewing your blog on a mobile device.

Conclusion

Removing "?m=1" from your Blogger URL doesn't have to be a complicated process. By following these easy steps, you can achieve a cleaner and more consistent URL structure for your blog. Remember to save your theme changes and clear your browser cache to see the results. Enjoy your newly streamlined Blogger URLs!

Post a Comment