Mobile device detection and redirecton

By jobeard
Jan 8, 2014
Post New Reply
  1. I notice that several links do not detect nor have appropriate layouts for mobile devices.

    Using this as an example:
    A mobile device UA string like (iphone 4):
    Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5​
    does not support mobiles

    The attachment handles detection and redirection

    Attached Files:

  2. jobeard

    jobeard TS Ambassador Topic Starter Posts: 9,151   +598

    Btw: the redirector is positioned line one of the file(s) needing this support:
    foo.html becomes foo.phtml and line one (even prior to doctype html) of the foo.phtml reads:
    <?php   require_once  'phpRedirector.php';   ?>
    Last edited: Jan 9, 2014
  3. Julio Franco

    Julio Franco TechSpot Editor Posts: 7,025   +612

    Thank you jobeard. Right now we have two separate sites for mobile and desktop, but come February-March we are moving to a responsive design (and a fully redesigned TS) so for now we are not fixing anything that goes beyond core issues for obvious reasons.
  4. jobeard

    jobeard TS Ambassador Topic Starter Posts: 9,151   +598

    Understood - - just thought I would share some solutions that worked for me :)

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...