Redirect Mobile Theme Page to Other URL (2 posts)

  1. dbirlew
    Posted 4 years ago #

    Okay, sorry in advance that this is a complex thingy I'm asking for, but here goes.

    I have a site that uses one theme for browsers, a different theme for mobile (via the excellent WPMS Mobile Edition). I have Vanilla forums installed and embedded at my WP site. I would really like to modify the mobile theme to redirect the Forum page (and ONLY the Forum page) to the Vanilla Forum URL.

    So end result, if you're browsing through a PC browser you go to http://danbirlew.com/forums but through a mobile browser you go to http://danbirlew.com/vanilla

    The problem is there's already one redirection from the regular theme to the mobile via the WPMS Mobile Edition.

  2. Adrian Wong
    Posted 4 years ago #

    Haven't used WPMS Mobile Edition before, but there should be a way from the filters http://wordpress.org/extend/plugins/wpms-mobile-edition/other_notes/ to set certain condition when a mobile browser is detected.

    All you need is to set a refresh meta in the header for the conditions as set above to redirect the page when a mobile browser is detected.
    <meta http-equiv="refresh" content="1; url=http://danbirlew.com/vanilla">

Topic Closed

This topic has been closed to new replies.

About this Topic