I have a website setup at https://www.example.com, hosted on IIS 7.5.

I would like to add a mobile version of my application at https://m.example.com.

How do I create a seperate site that can be accessed via https://m.example.com?

link|improve this question
possible duplicate of IIS 7.5 Redirect / URL Rewrite to mobile version of website – Jim B Jan 31 at 0:41
I'm not trying to redirect someone. Rather, I'm trying to figure out how to setup the "m." portion. How do I add m. to my url? – Mono Developer Jan 31 at 0:55
feedback

1 Answer

You need to add an entry to your DNS host, most of the time, your domain registrar can handle that.

If you're going to use a virtual host on IIS (I don't know how it works on IIS), you must set up a virtual host to listen on m.example.com and add an A/AAAA (IPV4/IPV6) entry to your DNS, like :

1.2.3.4 m.example.com

So that when someone connect on m.example.com, it's redirected to the (same) server, and IIS does the switch with a virtual host listening for incoming HTTP connections with the 'Host: m.example.com' header.

I don't know if I am clear, but well, I tried !

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.