<?php
require_once 'Mobile_Detect.php'; // PHP Class to detect device.
$detect = new Mobile_Detect;
if( $detect->isMobile() && !$detect->isTablet() )
{echo "<script language=javascript>window.location = 'mobile.html';</script>";}
else
{echo "<script language=javascript>window.location = 'desktop.html';</script>";}
?>