This how to clean blogger urls step by step tutorials [ remove ?=1 on blogspot]

This how to clean blogger urls step by step tutorials [ remove ?=1 on blogspot]



✅ How to Clean Blogger URLs (Remove ?m=1 from Blogspot) – Step‑by‑Step Tutorial (2026 Guide)

If you’ve noticed your Blogger URLs showing:

https://yourblog.blogspot.com/?m=1

Don’t worry — this is a mobile parameter automatically added by Blogger. It doesn’t harm your blog, but it can:

  • Look unprofessional
  • Create duplicate URL issues
  • Affect SEO tracking
  • Confuse visitors

Here’s how to remove ?m=1 from Blogspot URLs properly 👇


✅ Method 1: Remove ?m=1Using JavaScript (Easiest & Most Popular)

This is the simplest and safest method for most Blogger users.


🔹 Step 1: Backup Your Theme

  1. Go to Blogger Dashboard
  2. Click Theme
  3. Click the Backup/Download icon (top right)
  4. Save the file

Always backup before editing HTML.


🔹 Step 2: Edit HTML

  1. In Theme, click Edit HTML
  2. Press CTRL + F
  3. Search for:
</body>

🔹 Step 3: Add This Script Before </body>

Paste this code just above the </body> tag:

[show us some love by clicking our ads]

<script type='text/javascript'> var uri = window.location.toString(); if (uri.indexOf("?m=1") > 0) { var clean_uri = uri.substring(0, uri.indexOf("?m=1")); window.history.replaceState({}, document.title, clean_uri); } </script>

✅ Click Save


🔹 Step 4: Test Your Blog

Open your blog on:

  • Mobile device
  • Desktop browser
  • Incognito mode

The ?m=1 should disappear automatically.


✅ Method 2: Prevent Search Engines from Indexing ?m=1(SEO Fix)

Even if users don’t see ?m=1, Google might still crawl it.

Here’s how to block it in robots.txt:


🔹 Step 1: Go to Blogger Settings

  1. Click Settings
  2. Scroll to Crawlers and indexing
  3. Enable Custom robots.txt

🔹 Step 2: Add This Code

User-agent: * Disallow: /*?m=1 Disallow: /*?m=0 Sitemap: https://yourblog.blogspot.com/sitemap.xml

(Replace with your actual domain)

✅ Click Save

This prevents duplicate indexing.


✅ Method 3 (Advanced): Remove ?m=1 with Cloudflare (Custom Domain Only)

If you're using a custom domain + Cloudflare, you can:

  • Create a rewrite rule
  • Use Cloudflare Workers
  • Redirect mobile requests internally

This is ideal for advanced users who want complete URL control.


✅ Why Blogger Adds ?m=1

Blogger automatically:

  • Detects mobile devices
  • Redirects users to mobile version
  • Adds ?m=1 as a mobile parameter

It’s not an error — just Blogger’s default system.


✅ Does Removing ?m=1 Affect SEO?

✅ No negative impact when done properly
✅ Improves URL cleanliness
✅ Reduces duplicate content issues
✅ Makes links look professional

After making changes, you can:

  • Resubmit your sitemap in Google Search Console
  • Request re-indexing of important pages

🚀 Pro Tip (Best Practice 2026)

If you're using a modern responsive Blogger theme, you don’t even need mobile redirection anymore.

Make sure:

  • Mobile theme is disabled
  • Your theme is fully responsive

Check here:

Theme → Customize → Mobile Settings → Disable mobile view


✅ Final Result

Before:

https://yourblog.blogspot.com/?m=1

After:

https://yourblog.blogspot.com/

Clean. Professional. SEO-friendly ✅


If you'd like, tell me:

  • Are you using Blogspot subdomain or custom domain?
  • Which theme are you using?

I can give you the exact optimized setup for your blog.

Previous Post Next Post