Ver Mensaje Individual
  #11 (permalink)  
Antiguo 24/08/2013, 17:47
Avatar de miguelangelbravo
miguelangelbravo
 
Fecha de Ingreso: marzo-2011
Mensajes: 23
Antigüedad: 13 años, 1 mes
Puntos: 1
Respuesta: ¿Como direccionar a una web móvil si se habré la web principal desde un ce

Si estas utilizando el MobileDetect.php es tan sencillo como poner:

Código PHP:
Ver original
  1. include('MobileDetect.php');
  2.    
  3.     $detect = new Mobile_Detect();
  4.    
  5.     if($detect->isTablet()){
  6.        
  7.         header("Location: http://m.mobile/");
  8.     }
  9.     if($detect->isMobile()){
  10.    
  11.         header("Location: http://m.mobile/");
  12.    
  13.     }

eso colocalo antes del <html>, al igual si estas utilizando wordpress busca tu header.php y colocalo al inicio, espero haberte ayudado