How to Fix Blogger Mobile Redirect in Wordpress | 301 Perma Redirection


Fix Blogger Mobile Redirect in Wordpress

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 WordPress
RewriteEngine On
RewriteBase /
RewriteEngine On
RewriteCond %{QUERY_STRING} ^m=1$
RewriteRule ^(.*)$ /$1? [R=301,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

3. You need to replace the above code with the code given below

# Begin Redirection
#Redirect archives
RewriteRule ^([0-9]{4})_([0-9]{1,2})_([0-9]{1,2})_archive.html$ $1/$2/ [L,R=301]
#Redirect labels/categories
RewriteRule ^search/label/(.*)$ category/$1/ [L,R=301]
RewriteEngine On
RewriteCond %{QUERY_STRING} ^m=1$
RewriteRule ^(.*)$ /$1? [R=301,L]
#ATOM Feeds
RewriteRule atom.xml feed/atom/ [L,R=301]
RewriteRule feeds/posts/default feed/atom/ [L,R=301]
#RSS FEEDS
RewriteRule feeds/posts/default?alt=rss feed/ [L,R=301]
RewriteRule rss.xml feed/ [L,R=301]
#Comments Feed
RewriteRule /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!

Post a Comment

0 Comments