• Hello,

    With the new 2.(x) branch it is not possible to use the domain mapping option: we want to enforce the mobile version use only on a subdomain. This is not possible with this version as it only works on the user agent..

    Any hope to enforce desktop on X domain and mobile on Y domain like it was possible before?
    This is necessary for some setups where people use a frontend caching proxy.

    Thank you!

    https://ww.wp.xz.cn/plugins/wordpress-mobile-pack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 13868920

    (@anonymized-13868920)

    Hi there,

    The setup that you described can’t be done from the admin panel, but the user agent detection is quite easy to modify, since there is a single PHP file that does that (core/mobile-detect.php). You can edit the wmp_detect_device() method to always return “true” for your mobile subdomain and “false” otherwise.

    Now, I don’t know how you are handling your mobile subdomain, I assume you have a separate WP install for it? Also, please be aware that the mobile web application doesn’t run on all desktop browsers (for example, IE9 is not supported), so always enabling access to it by not taking into account the user agent might cause some problems for desktop users.

    Thread Starter abriand

    (@abriand)

    Hello,

    Thanks for the hint!
    No we have a domain mapping and we don’t serve the mobile version to desktop users (we redirect them to the right version).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘No more domain mapping’ is closed to new replies.