Hi !
If you want definitely to redirect your visitors, you can use this code :
<script language=javascript>
<!--
var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) {
document.location = "http://www.yourmobilewebsite.com";
}
-->
</script>
Source : http://localstreamer...-detect-all-mob
However, please put a button to allow people to go back to the normal version of your website.
You can also just use CSS3 features, and use this kind of code to use the stylesheet according to the device :
<link rel="stylesheet" href="screen.css" media="screen"/>
<link rel="stylesheet" href="handheld.css" media="handheld"/>
Source : http://www.designyou...g-mobile-users/
I'd rather go for the second option, but it's up to you!