Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I was using WordPress mobile pack plugin which i have already uninstalled but there are too many URLs are indexed in Google with ?wpmp_switcher=desktop parameter. How can i fixed and no index kind of URLs or is there any plugin to fixed this

Example URL is

http://www.example.com/contact-us/?wpmp_switcher=desktop

share|improve this question
    
Just to clarify, you removed the plugin that created these URLs, but they're still indexed and you'd like them to be removed from Google? –  dan Feb 19 '14 at 17:04
    
Yes exactly @dan Please help. –  Shobee Feb 22 '14 at 20:32

1 Answer 1

You could put in a rewrite rule that redirects to remove the query string when it contains that parameter:

RewriteEngine On
RewriteCond %{QUERY_STRING} wpmp_switcher
RewriteRule (.*) $1 [R=301,L]

This code would go in your .htaccess file

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.