Remove '?m=1' parameter from page url in .htaccess

1 comment
While moving a website from blogger to Wordpress, we face this issue because blogger adds an extra parameter in url in a mobile version. And in WordPress, it does not change or add any extra parameters in URL. In this situation, we need to redirect this link to the original link.
To do this task, we need to add below code in our. htaccess file.

RewriteCond %{QUERY_STRING} ^m=1$
RewriteRule ^(.*)$ /$1? [R=301,L]

I hope that above link will work for you. Please feel free to write your opinion in comment box below. Thanks for reading my blog.

1 comment :

  1. It is possible to get custom redirection through apache server, but I will not be able to explain it technically.

    ReplyDelete