<? if(stristr($_SERVER['HTTP_ACCEPT'],"text/vnd.wap.wml")) { // Es un dispositivo móvil, soporta WML header("Location: index.wml"); exit; // Redirigimos a la versión WAP } ?>