Subdomains for mobile devices

Just wondering how to implement this the best way (not sure how most sites do this).

Just want to have a mobile and iPhone version of my site - it would just be a matter of stripping out/replacing some stylesheets and javascripts and buffering some of the html markup - but I’m not sure how to organize it, per se.

I don’t want to have three different directories of all pretty much the same content (regular, mobile, and iPhone) - but I want the URL to be i.mywebsitename.ca if the user is on an iPhone - but of course the way subdomains work is a user is directed to a different directory on the domain.

Any help much appreciated. :slight_smile: