Here is how I handle mobile devices. http://discourse.weather-watch.com/p/355978
I think it’s important to let the visitor dtermine ultimately if he wants the mobile or full pages. The link above sets a cookie and allows visitors to switch; the cookie keeps the redirection from happening any more for that session.