Recently, I moved this blog from Blogger to WordPress. The migration was successful and I even shared the steps I went through with the migration from blogger to wordpress. After the whole process, I checked everything and they were in order, but I didn’t notice one thing, it was Google Webmaster tool that reminded me.
I checked my mail one faithful morning after the migration and saw a message from Google Webmaster tools that I had an increase in not followed pages. Immediately, I went to my Google webmaster tools page and saw over 300 errors. The cause of all these errors was the ?m=1 that is placed at the end of my blog mobile version when I was on blogger. So whenever readers and bots access my site with any valid link that ends with ?m=1, they are redirected to a 404 error page.
When I told a friend about the problem, he said I should redirect the pages that ends with ?m=1 one after the other. I told him it isn’t easy to redirect over 500 links. His response was – just do it! I laughed at him because I was able to fix it with a code that is not up to two lines. Fixing that wasn’t difficult at all. All I did to redirect visitors to the correct page and tell search engines bots to crawl the correct URLs was by placing a rewrite rule in my .htaccess. Although after the migration, I once disallowed bots from crawling URL s that end with ?m=1, but Google webmaster tools still show errors.
Solve Blogger to WordPress ?m=1 Redirect Issue
This doesn’t require any plugin. Simply go to your blog .htaccess (hypertext access) file, after the RewriteEngine On RewriteBase / line, add the code below into it and don’t forget to save it.
RewriteEngine On
RewriteCond %{QUERY_STRING} ^m=1$
RewriteRule ^(.*)$ /$1? [R=301,L]
Try to Visit: http://www.justnaira.com/2013/10/fix-blogger-wordpress-m1-error.html?m=1
If you follow the process correctly, everything should be working fine by now.
You just saved my mobile traffic!
Thanks for this article.
I want to add solution on NginX:
Use below code in “location /” Of VirtualHost config
if ($query_string ~ “^m=1$”){
rewrite ^(.*)$ /$1? redirect;
}
Hi, do you have full example of .htaccess code ? because i dont find .htaccess on my path…
fenx for d super information… I have been searching for d tutorial for a while now… just moved my blog from blogger to wordpress.. keep it up
Thanks for sharing!
I heard about such cases, the friend of mine migrated his blogger to wordpress by copy/pasting, so after that he was getting so many errors that he had to start everything all over again. at that time he tried an automated tool cms2cms converter, so then everything went smooth. this is nice instrument for those who is not so tech savvy or just don’t want to code