Codice PHP:
if (eregi('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT'],))
{
header('Location: '); #Explorer
}
elseif(eregi('Opera/([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT'])) || eregi('Opera ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']))
{
header('Location: '); #Opera
}
elseif (eregi('Firefox/([0-9].[0-9]{1,2})',$_SERVER['HTTP_USER_AGENT']))
{
header('Location: '); #Firefox
}
elseif (eregi('Konqueror/([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']))
{
header('Location: '); #Konqueror
}
elseif (eregi('Chrome/([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']))
{
header('Location: '); #Chrome
}
else
{
header('Location: '); #Normale
}
Dimmi se funziona