Fix WordPress m=1 redirect issue from Blogger Mobile URL using htaccess

If you have moved your blog from blogger to self hosted wordpress platform, then you likely to see 404 or page not found errors in webmaster tools for URLs ending with ?m=1.These are blogger mobile version URLs. Blogger adds m=1 to all mobile version URLs. After you migrated your site from blogger to wordpress, those blogger mobile version URLs should be redirected to new wordpress URLs, otherwise you will see lot of 404 errors in webmaster tools.

There are few wordpress plugins that can fix this issue, but there is a simple solution without using any wordpress plugin. Don’t use plugin for each and every thing, it will slow down your site’s performance.

Fix WordPress ?m=1 redirection issue

  1. Goto .htaccess file, You can access it using FTP
  2. Find # BEGIN WordPress
  3. Add below lines just above that

            #fix blogger m=1 issue in wordpress
RewriteEngine On
RewriteCond %{QUERY_STRING} m=1
RewriteRule (.*) /$1? [R=301,NE,L]
#fix blogger m=1 issue in wordpress ends

That’s it. Save .htaccess file, goto webmaster tools, open any URL ending with m=1 and test whether it redirects to the correct wordpress URL (without m=1) or not.

About the Author


A passionate blogger. Love to share solutions and best practices on wordpress hosting, issues and fixes, excel VBA macros and other apps