Alıntı
<script language=javascript>
<!--
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
location.replace("http://url-to-send-them/iphone.html");
}
-->
</script>
ya da ekran cozunurlugune gore

Alıntı
<script type="text/javascript">
<!--
if (screen.width <= 699) {
document.location = "mobile.html";
}
//-->
</script>
php kullanıryorsan

$_SERVER['HTTP_USER_AGENT'] ile Windows Phone,iphone ya da android neyden girilmiş anlayabilirsin

hazır class : http://code.google.com/p/php-mobile-detect/