Saturday, 7 December 2013

Pin It

Widgets

How To Solve ?m=1 ?m=2 Mobile Permalink Redirection Issue After Moving From Blogger To Wordpress


Now A Days, many bloggers are moving from Blogger to Wordpress for some reasons. But after moving the permalink structure will be changed. As the permalink structure is changed, the old URL can not be accessed and the 404 error page will be displayed. Google and other search engines will remove the URL with 404 page from SERP. This will result in the decrease in the traffic from search engines. To overcome this problem, I will tell you some tricks and tips.

1.Install Smart 404 Plugin

When a 404 page is encountered, instead of displaying the 404 page, it tries to search the posts,tags, and categories for the matching URL and then displays the correct page.


2.Edit .htaccess

When using blogger, the mobile site view of the blog contains the URL which appends ?m=1 and ?m=2.Even afrer installing the above plugin, the plugin will not search if the URL consists of ?m=1 and ?m=2 at the end of the URL.


To solve this issue, follow these steps:


  • Open .htaccess file in the wordpress installed directory.
  • Make a copy of this file.
  • Add the following to .htaccess file right after the RewriteEngine on RewriteBase /line.

RewriteCond %{QUERY_STRING} ^m=1$
RewriteRule (.*) $1? [R=permanent]
  • Save the file and open your blog.
If any error occurs, dont worry.Open the previously copied .htaccess file and copy the whole code and replace the edited .htaccess file.

If you have any questions, comment below.I will respond as soon as possible...

Reactions:

1 comments:

Complicated?
If you have any question about any Post, Don't hesitate to ask question.You can simply drop a comment below post.Your Feedback always appreciated.