WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Mobile Pack
How to remove this Ghastly plugin completely? (25 posts)

  1. cnews
    Member
    Posted 3 years ago #

    This plugin has in my opinion completely destroyed the SEO of my website.

    I have uninstalled the plugin, but over 500 pages remain NOT FOUND by Google.

    example: /?cat=1%2Fpage%2F2%2F&paged=32&wpmp_switcher=desktop

    I have no idea how to fix this.

    Can someone please point me in the right direction?
    http://coudynews.com

  2. cnews
    Member
    Posted 3 years ago #

    Not even a reply?

    This plugin should be removed. I can see that it has caused more problems for many people than anything else.

    I guess I'll have to find a solution to this problem myself. I'll post it here once I have.

  3. mrmist
    Forum Janitor
    Posted 3 years ago #

    I'm not sure what the issue is now, but have you tried changing back to simple permalinks then back to pretty?

    Also check .htaccess for any oddities.

  4. cnews
    Member
    Posted 3 years ago #

    Thanks for the response. I did indeed switch the permalinks with no success.

    Also, my .htaccess file is quite small with no oddities.

    Can you tell me what type of script would still be leftover after deactivating this plugin?

  5. mrmist
    Forum Janitor
    Posted 3 years ago #

    Not really, I'm not familiar with it. All I can suggest is looking at the code and seeing if it gives any clues.

  6. madinkbeard
    Member
    Posted 3 years ago #

    You have to go into Google Webmaster Central and tell it to ignore the "wpmp_switcher" query variable. You might also make sure your sitemap is updated.

  7. frikafrax
    Member
    Posted 3 years ago #

    To cover all your bases, you may want to consider, as an additional step, editing your .htaccess file to return a "410 - Gone" code whenever a URL with the WP Mobile Pack parameters is requested.

    This will prevent all other search engines and crawlers from attempting to index those bad URLs and help you avoid further penalization for duplicate or unreachable content.

  8. frikafrax
    Member
    Posted 3 years ago #

    I'm just posting a follow-up to my post.

    Previously, I had suggested having your site return a "Content removed" code (410) whenever a URL with WP Mobile Pack parameters was requested.

    I inquired over at Google Webmaster Central and was told that it was a better idea to strip the Mobile Pack parameters from incoming requested URLs and do a 301 redirect to the appropriate content.

    This can be done internally in WordPress using something like the Redirection plugin, or via .htaccess.

  9. zoddy11
    Member
    Posted 2 years ago #

    how did u do it via htacess

    this is a stupid plugin, isnt there anyway to completely remove it from your site..... it is killiing some of my sites

  10. frikafrax
    Member
    Posted 2 years ago #

    The problem is that search engines continue to crawl the previously generated and indexed Mobile Pack URLs after the plug-in itself has been deactivated or uninstalled.

    So you need to tell the web server what to do when a request is made for a URL that contains the Mobile Pack Switcher query string.

    In my case, what I did was use .htaccess to remove the Mobile Pack Switcher query strings from the requested URL, then redirect the search engine or visitor to the cleaned URL:

    ## Strip Mobile Pack query strings ##
    RewriteCond %{QUERY_STRING} ^wpmp_.*$
    RewriteRule ^(.*)$ $1?%1 [R=301,L]

    You may have to tweak the code to suit your blog set-up.

  11. zoddy11
    Member
    Posted 2 years ago #

    yeah i tried that code doesnt seem to do anything, at least if i enter one of those switcher links it doesn redirect... i do have super cache on with a bunch of other rules, not sure if they are taking over somehow

  12. zoddy11
    Member
    Posted 2 years ago #

    ah turned off super cache still no go.... hmmmmmm

  13. zoddy11
    Member
    Posted 2 years ago #

    how can i really test it, just by puting the url in? see if it redirects?

  14. frikafrax
    Member
    Posted 2 years ago #

    I tested that redirect on my site and it works.

    .htaccess is processed in a top-down order so make sure the redirect code comes before the Supercache code in .htaccess.

    It would help if you provided a link to your blog and an example of one of the invalid URLs.

  15. frikafrax
    Member
    Posted 2 years ago #

    @zoddy11

    Try this version of the code:

    ## Strip Mobile Pack query strings ##
    RewriteCond %{QUERY_STRING} ^wpmp_.* [NC,OR]
    RewriteCond %{QUERY_STRING} (.+)&?wpmp_.*$ [NC]
    RewriteRule ^(.*)$ $1?%1 [R=301,L]

    This version takes into account query strings that are placed before the wpmp_switcher query string.

  16. zoddy11
    Member
    Posted 2 years ago #

    hey thanks man i try that version as well, i actually got the first one working, i was stupid as i put it before the engine... was pretty tired

  17. frikafrax
    Member
    Posted 2 years ago #

    I'd recommend you use the second version of the redirect instead.

    The first version of the redirect might break some requests since it will remove ALL query strings if it finds the Mobile Pack Switcher query string in the request.

    For example:

    http://www.myblog.com/article.html?somequery=foo&wpmp_switcher=mobile

    ...would be stripped down to just:

    http://www.myblog.com/article.html

    The second version of the redirect will retain any query strings that come before the Mobile Pack Switcher query string.

    So in the example above, the request would be changed to:

    I.e. http://www.myblog.com/article.html?somequery=foo

    This is safer.

  18. zoddy11
    Member
    Posted 2 years ago #

    would it fix something like this
    /page/43/?s=ts&wpmp_switcher=mobile

    cause i got these suckers as well..

  19. frikafrax
    Member
    Posted 2 years ago #

    Yes, it'll match that request.

    It'll change this:
    /page/43/?s=ts&wpmp_switcher=mobile

    To this:
    /page/43/?s=ts

  20. zoddy11
    Member
    Posted 2 years ago #

    cool i will give it a go... thanks for your help, begs the question should i be allowing searches to be indexed... ha...

  21. zoddy11
    Member
    Posted 2 years ago #

    it works like a charm, I appreciate all your help very much. Now all I got to do is wait 2 months to have it removed out of google webmaster tools hehe

  22. gilu
    Member
    Posted 2 years ago #

    frikafrax, THANK YOU!
    I've tried a thousand different things until I found your code which works!!!!
    Thanks again!

  23. frikafrax
    Member
    Posted 2 years ago #

    You're welcome! Glad I could be of some help!

  24. BostonCab
    Member
    Posted 2 years ago #

    Damn it.. I just installed this thing.. I already don't want it and I have not figured out how to completely set it up yet!

    Can anyone suggest an alternative avenue? I need to get some mobile traffic coming in but my pages don't display in iphones etc. etc. etc.

    Any ideas?

  25. frikafrax
    Member
    Posted 2 years ago #

    @BostomCab

    I'm currently trying the WP Mobile Detector plugin.

    From what I've seen so far, WP Mobile Detector doesn't alter blog URLs with query strings when serving pages to mobile devices so it won't mess up your site where search engines are concerned.

    (Apologies for necro-posting but I didn't receive any email notifications for new follow-up posts on this thread.)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic