Duplicate without user-selected canonical ?m=1

If you're dealing with duplicate URLs containing ?m=1 in Blogger Blogspot you can use the following methods to fix or mitigate the issue
Step 1 Canonical Tag
Blogger automatically includes a canonical tag in its template pointing to the main version of the page usually the desktop version without ?m=1 Ensure this is working correctly
fast check your canonical tags any web site
Go to Theme > Edit HTML in your Blogger settings
Look for the <head> section and verify the canonical tag exists
<link rel="canonical" href="https://www.yourblog.com/your-post-url" />
If it’s missing, manually add it
Step 2 Custom Redirects in Blogger
Unfortunately, Blogger doesn’t allow you to manipulate query parameters like ?m=1 directly. However Google will respect the canonical tag if it's set correctly
Step 3 robots.txt to Block ?m=1
While you can't edit server configurations directly in Blogger, you can block ?m=1 from being indexed by adding a rule in Search Preferences:
Go to Settings > Crawlers and Indexing
Enable Custom robots.txt and add
User-agent: *
Disallow: /*?m=1
This prevents search engines from indexing URLs with ?m=1.
Step 4 Meta Noindex for Mobile URLs
Add a meta tag to the mobile version of your pages to prevent indexing. This requires editing your Blogger template:
Go to Theme > Edit HTML.
Find the <head> section and add this conditional noindex tag
<b:if cond='data:blog.isMobile'>
<meta name="robots" content="noindex" />
</b:if>
This will apply only to mobile pages (?m=1) and prevent them from being indexed
im use Step 5 JavaScript Redirection
Although not ideal, you can use JavaScript to redirect ?m=1 URLs to their desktop versions:
Go to Theme > Edit HTML.
Add this script just before the closing </body>
<script>
(function() {
var url = window.location.href;
if (url.indexOf('?m=1') !== -1) {
url = url.replace('?m=1', '');
window.history.pushState(null, null, url);
}
})();
</script>
This will automatically redirect users and bots to the desktop URL My Problem Solve
6. Google Search Console Parameter Handling
Use Google Search Console to specify how Google should handle the ?m=1 parameter:
Add the
m parameter and specify that it doesn’t change the content of the pageSummary
For Blogger, the best approach is to rely on the canonical tag and use robots.txt to block ?m=1 URLs. Adding conditional noindex tags or JavaScript redirection can also help. If you're unsure, focus on the canonical tag, as it’s Google’s recommended solution
0 Comments