WordPress.org

Forums

WordPress Mobile Pack
WPMP Breaks Redirects? (9 posts)

  1. gcarson
    Member
    Posted 4 years ago #

    By luck today, I noticed site.com/ was not redirecting to http://www.site.com/ and http://www.site.com was not adding the trailing slash as http://www.site.com. After playing around for hours with .htaccess files, pulling backup files, deleting file after file trying to figure this out, I deactivated this plugin. Right after, the redirects starting working.

    While the plugin was enabled, I tried adding a 301 redirect to the .htaccess file, and all it did was broke my site. I don't think that will work.

    I did see one other question on this topic with no response:

    http://wordpress.org/support/topic/plugin-wordpress-mobile-pack-conflict-with-wordpress-canonical-redirects?replies=1

    Anyone else having this issue? This can be a huge duplicate content issue. I only noticed it by mistake so others might be missing it. This, along with the wpmp_switcher duplicate content, is really alarming. I told GW to ignore the parameters but on a new page I added to my site, google indexed the page with the parameter first.

    Any thoughts from the experts out there?

    Has anyone tried something like this? Do a subdomain install of wordpress on say m.site.com. Then in that wordpress configuration file, point it to your main site's databases so you don't have to have multiple databases. Then point the mobile install to this sub domain. Block the subdomain from bots with a robots file. Not sure if something like that is possible?

  2. mail.sverma
    Member
    Posted 4 years ago #

  3. gcarson
    Member
    Posted 4 years ago #

    Wish I could help mail. I'm going to do a separate wordpress install on a subdomain like m.mysite.com. Point that install's to the original database and do a very toned down mobile site.

  4. mail.sverma
    Member
    Posted 4 years ago #

    Thanks. Me also working on the same, will update you if success.

  5. mail.sverma
    Member
    Posted 4 years ago #

    It's also not working on iphone,getting same problem on iphone.

  6. gcarson
    Member
    Posted 4 years ago #

    I think you need to post your own question and not hijack other threads.

    Best of luck

  7. PeterKirk
    Member
    Posted 4 years ago #

    Having just the same problem, as noted in several threads. Isn't this supposed to be a support forum? Is there anyone out there offering support on WPMP? If not I will have to look elsewhere.

  8. galbaras
    Member
    Posted 4 years ago #

    I have the same problem and on a multisite, this also makes the subdomain m.site.com redirect incorrectly.

    After commenting out the line in wpmp_switcher.php that says

    remove_filter('template_redirect', 'redirect_canonical');

    The plugin now shows both mobile and desktop versions, but requires using the ?wpmp_switcher=desktop or ?wpmp_switcher=mobile at least once to do it on Firefox, even when my user agent is set to iPhone 3.0.

    This pack has had a lot of work done on it, so I'm hoping the developer(s) will come through this time for us too.

  9. galbaras
    Member
    Posted 4 years ago #

    OK, here's an update you're gonna love.

    1. I've restored the "remove_filter" line.
    2. I've added a canonical redirect in my .htaccess file
      Options +FollowSymLinks
      RewriteEngine on
      RewriteCond %{HTTP_HOST} ^ronitbaras.com [NC]
      RewriteRule ^(.*)$ http://www.ronitbaras.com/$1 [L,R=301]

    This made things work on my standalone blog.

    For my multisite top-level blog, I could not get the subdomain to work, so I've disabled domain name switching in the plugin and put the following in .htaccess:

    Options +FollowSymlinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^m.get-business-online.com [NC]
    RewriteRule ^(.*)$ http://get-business-online.com/$1?wpmp_switcher=mobile [L,R=301]

    On a fresh browser, this works, but not if you've visited the site before with the switcher on, so clear cookies and cache to reset and try again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Mobile Pack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic