This little bit of script will detect the iPhone or iPod touch and send it on it’s merry way to whatever page you wish. So you can use it on your website to send iPhone/iPod users to a webpage which is specially made for iPhone/iPod users.
Credit goes to BlaZe
PHP:
if ((navigator.userAgent.indexOf('iPhone') != -1) ||
(navigator.userAgent.indexOf('iPod') != -1)) {
document.location = "http://www.tutsby.me/forum/iphone-specialpage/";
}
Credit goes to BlaZe