WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Mobile Pack
Conflict with WordPress' canonical redirects (3 posts)

  1. John Blackbourn
    Member
    Posted 3 years ago #

    In the Mobile Switcher plugin for WPMP, the redirect_canonical filter is removed (line #103 as of version 1.2.3). This, obviously, causes canonical redirects to stop working.

    I've removed this section of code so the filter is no longer removed.

    May I ask why this filter is removed? Is there a side effect that I've yet to find? Any information would be appreciated.

    Thanks,
    John

    http://wordpress.org/extend/plugins/wordpress-mobile-pack/

  2. raymor
    Member
    Posted 3 years ago #

    Canonical redirects break a LOT of things even when using
    mature desktop browsers, so I'm sure they cause even
    more problems on mobile browsers, some of which are about
    as developed as IE 2.0.

    Some of the bigger problems you see on all browsers
    are:

    Breaks if your site is accessible via https as well as http.
    Breaks anything that uses cookies and is accessible as
    http://www.site.com and site.com.
    Breaks PHP sessions in many cases.
    Breaks load balancing such as www1.site.com
    and www2.site.com
    I could go on and on, requiring the use of fully qualified
    URLs via the redirect or the new "validation" of the base URL
    just really screws up a lot of things.

    On the other hand, it does help your Google rank, but only
    in the land of fairy tales. In the real world, Google already
    assumes that http://www.site.com and site.com are the normally the same.
    So the actual benefit is .. nothing. Just a huge pain in the
    rear, causing all sorts of incompatibilities, for no reason
    at all.

  3. PeterKirk
    Member
    Posted 3 years ago #

    Is this in fact the same issue as in http://wordpress.org/support/topic/plugin-wordpress-mobile-pack-causing-conflict-with-short-url ? The short URL redirects are working fine on my desktop site, and have considerably helped my Google rankings. Why does the mobile plugin need to break this aspect of a desktop site? For me this is a complete killer for WPMP - I would rather have no mobile site than a broken desktop one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic