# Subdomains for mobile devices

**URL:** <https://forum.kirupa.com/t/subdomains-for-mobile-devices/274752>\
**Category:** programming\
**Created:** [November 4, 2008, 7:43am UTC](https://forum.kirupa.com/t/subdomains-for-mobile-devices/274752 "2008-11-04T07:43:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icy\_Penguin](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@Icy\_Penguin](https://forum.kirupa.com/u/Icy_Penguin)\
**Post date:** [November 4, 2008, 7:43am UTC](https://forum.kirupa.com/t/subdomains-for-mobile-devices/274752/1 "2008-11-04T07:43:17Z")

</div>

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. 🙂
