Forum Moderators: phranque
[edited by: incrediBILL at 2:43 am (utc) on Sep 20, 2012]
[edit reason] use exmple.com [/edit]
Use of the [R] flag causes a HTTP redirect to be issued to the browser. If a fully-qualified URL is specified (that is, including [servername...] then a redirect will be issued to that location. Otherwise, the current protocol, servername, and port number will be used to generate the URL sent with the redirect.
Modifying the Query String-
... When you want to erase an existing query string, end the substitution string with just a question mark. ...
RewriteCond %{query_string} ^wpmp_switcher=mobile [OR]
RewriteCond %{query_string} ^wpmp_switcher=desktop [OR]
RewriteCond %{query_string} ^wpmp_tp=0 [OR]
RewriteCond %{query_string} ^wpmp_tp=1 [OR]
RewriteCond %{query_string} ^wpmp_tp=2 [OR]
RewriteCond %{query_string} ^wpmp_switcher=mobile&wpmp_tp=0 [OR]
RewriteCond %{query_string} ^wpmp_switcher=mobile&wpmp_tp=1 [OR]
RewriteCond %{query_string} ^wpmp_tp=1&wpmp_switcher=desktop [OR]
RewriteCond %{query_string} ^wpmp_tp=1&wpmp_switcher=mobile [OR]
RewriteCond %{query_string} ^wpmp_tp=0&wpmp_switcher=desktop [OR]
RewriteCond %{query_string} ^wpmp_tp=0&wpmp_switcher=mobile