Ticker

6/recent/ticker-posts

Header Ads Widget

Shared Hosting with Namecheap. Free .Website domain & WhoisGuard

How to Fix the ?m=1 Issue after migrating from Blogger to WordPress

 After migrating your blog from Blogger.com to WordPress, you may notice some 404 errors if you have installed a 404 monitor plugin. If you have not installed one, then you should surely consider doing that.


Cause of the issue: Blogger.com, by default, uses the query string at the end of the url ?m=1 for mobile visitors to your blog. Now since your blog is already indexed on google, the mobile visitors still get sent to the same version of the link say https://domain.com/?m=1


To fix this issue in Apache or OpenLiteSpeed server, simply edit your .htaccess file and add the below code at the top of the file. Its always advisable to take backup of .htaccess file before editing it.


# Fix the ?m=1 Issue
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ^m=1$
RewriteRule ^(.*)$ /$1? [R=301,L]
</IfModule>

Once Done, Restart your server for changes to take effect.

Post a Comment

0 Comments