Submitted by Matt Young on Sun, 11/30/2008 - 14:30.
I have previously set-up automatic device detection for mobile devices for a domain so thought I would document how I did it here as I had alot of trouble finding information on how to do it. I had considered using the accessability module but it didn't really do what I wanted and seems far too complex. I think this way is much easier!
The basic setup
First of all the main domain is a drupal 5 site. For the mobile site I decided to use drupal multisites and a subdomain. So basically the mobile site is a completely different site.