나는 웹 사이트 www.domain.com을 보유하고 있으며 새로운 모바일 버전 m.domain.com을 설계했습니다. 그러나 모바일 장치를 감지하고 www.domain.com에서 m.domain.com으로 리디렉션하는 방법은 무엇입니까? 그것을 리디렉션 다음 모바일 장치를 감지하고 대한모바일 사용자를 내 사이트의 모바일 버전으로 리디렉션하는 방법은 무엇입니까?
include 'Mobile_Detect.php';
$detect = new Mobile_Detect();
// Check for any mobile device.
if ($detect->isMobile())
// Check for any tablet.
if($detect->isTablet())
// 3. Check for any mobile device, excluding tablets.
if ($detect->isMobile() && !$detect->isTablet())
복제본에 대한 링크는 좋을 것입니다. 우리는 2009 년부터이 게시물에 대해 이야기하고 있습니까? 또는 2010? – Commandrea