WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Mobile Pack
Duplicate content after uninstall. Please help. (7 posts)

  1. triptrip
    Member
    Posted 3 years ago #

    After uninstalling this plugin three weeks ago. Google webmaster tools tells me that I have "Duplicate meta descriptions" and "Duplicate title tags" on over 250 pages.

    What can I do to fix this? Why is it happening?

    Any help will be greatly appreciated.

    Pages described as:
    /expect-list-home-sale-mls-sell-how-real-estate-listing/
    /expect-list-home-sale-mls-sell-how-real-estate-listing/?wpmp_tp=0&wpmp_switcher=mobile
    /expect-list-home-sale-mls-sell-how-real-estate-listing/?wpmp_tp=1&wpmp_switcher=mobile
    /expect-list-home-sale-mls-sell-how-real-estate-listing/?wpmp_tp=1

  2. triptrip
    Member
    Posted 3 years ago #

    I wish I never installed this plugin. Can anyone help me please?

  3. frikafrax
    Member
    Posted 3 years ago #

    You can tell Google to ignore any URLs that have WordPress Mobile Pack parameter using Google Webmaster Tools.

    In Google Webmaster Tools, go to:

    Site Configuration -> Settings -> Parameter Handling tab.

    The parameters "wpmp_switcher" and/or "wpmp_tp" should be listed there.

    Set the "Action" to "Ignore".

    If they aren't listed, click on the "+Add parameter" option at the bottom of the parameters list, above the "Save" and "Cancel" buttons.

    While I like the concept of the Mobile Theme Pack, I'm also removing it from all my blogs.

  4. frikafrax
    Member
    Posted 3 years ago #

    Just supplementing my response...

    If you have access to .htaccess on your host, you can use it to strip the Mobile Pack parameters from the URL and redirect visitors and search engines with a "301 - Moved Permanently" status code back to the original content:

    (I'm a bit of a newbie so anyone experienced with Apache, please chime in if I've got this part wrong.)

    RewriteEngine On
    RewriteCond %{REQUEST_URI} (.+)?(wpmp_switcher.+|wpmp_tp.+) [NC]
    RewriteRule .* %1 [R=301]

    In my case, I did the parameter stripping and redirection internally from within WordPress using a plugin called "Redirection".

    The regular expressions used for the Redirection plugin's source and destination URLs are the same as you'd use in .htaccess:

    Source URL:
    (.+)?(wpmp_switcher.+|wpmp_tp.+)

    Target URL:
    $1

    Hope this helps!

  5. triptrip
    Member
    Posted 3 years ago #

    Thanks!

  6. vikrantsharma1
    Member
    Posted 2 years ago #

    @frikafrax

    Source URL:
    (.+)?(wpmp_switcher.+|wpmp_tp.+)

    Target URL:
    $1

    This adds a trailing "?" in the URL. Can you please look into this and provide a correct code. Sorry, I am new to regular expressions and wordpress as such and don't know how to do it correctly. Thanks for your help.

  7. frikafrax
    Member
    Posted 2 years ago #

    @vikrantsharma1

    Use this code instead.

    This will strip the Mobile Pack Switcher query string from the requested URL and redirect the visitor.

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

    I used this on a few of my sites to deal with the "404" crawl errors reported by Google after I uninstalled Mobile Pack Switcher.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic