Grácias por la respuesta ... pero me aparece el siguiente error cuando entro en mi página:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhost/usecm.com/home/html/index.php:10) in /var/www/vhost/usecm.com/home/html/index.php on line 62
El código que he puesto es:
Código PHP:
if($mobile_browser>0){
header('Location: ../html/mobil/index.html');
}else{
header('Location: ../html/screen/index.html');
exit;
}
?>
La estructura de carpetas en el servidor es:
/html/index.php (el código que he puesto en el primer mail)
/html/screen/index.html
/html/mobil/index.html
Muchas grácias.