Mobile device detection and redirecton

D

DelJo63

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
 

Attachments

  • phpRedirector2.zip
    2.1 KB · Views: 1
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:
Code:
<?php   require_once  'phpRedirector.php';   ?>
 
Last edited by a moderator:
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.
 
Understood - - just thought I would share some solutions that worked for me :)
 
Back