WordPress.org is massively being used by every blogger these days. Many of these people may be new to WordPress.org and many may have transferred their blogs from the Blogger(BlogSpot) platform to WordPress also. Well, the upgrade is quite satisfactory but you need to have an eye on some tips to fully configure your blog so that it doesn’t lose any traffic from the Google search engine.
Even after doing all the necessary steps during the migration of the blog from the Blogger to WordPress, we may miss an important setting which is regarding the mobile URL is generated in the search engine which may lead to an ERROR 404.
As we are aware of the reality that every Blogspot mobile URL has ?m=1 at the end which differentiates it from the desktop version of the blog and this becomes the reason for the error in the case of WordPress. To check it one may visit their blog by search results using a mobile phone. However, no need to worry about this issue because we have a straight forward solution to this problem.
Steps to fix BlogSpot mobile redirect in WordPress:
1. Install .Htaccess Editor and open plugin to edit Htaccess file
2. Once you open the Htaccess file you will see the below code by default in it
# BEGIN WordPressRewriteEngine OnRewriteBase /RewriteEngine OnRewriteCond %{QUERY_STRING} ^m=1$RewriteRule ^(.*)$ /$1? [R=301,L]RewriteRule ^index.php$ – [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]# END WordPress
3. You need to replace the above code with the code given below
# Begin Redirection#Redirect archivesRewriteRule ^([0-9]{4})_([0-9]{1,2})_([0-9]{1,2})_archive.html$ $1/$2/ [L,R=301]#Redirect labels/categoriesRewriteRule ^search/label/(.*)$ category/$1/ [L,R=301]RewriteEngine OnRewriteCond %{QUERY_STRING} ^m=1$RewriteRule ^(.*)$ /$1? [R=301,L]#ATOM FeedsRewriteRule atom.xml feed/atom/ [L,R=301]RewriteRule feeds/posts/default feed/atom/ [L,R=301]#RSS FEEDSRewriteRule feeds/posts/default?alt=rss feed/ [L,R=301]RewriteRule rss.xml feed/ [L,R=301]#Comments FeedRewriteRule /feeds/comments/default comments/feed/ [L,R=301]RewriteRule /feeds/comments/default?alt=rss comments/feed/ [L,R=301]# End Redirection
That’s it now click on save changes and you are done!