I have a website on IIS 7 and I created a subdomain and I want this subdomain to point to a page in this website.
Example:
www.example.com --> this is the main website and its default page is default.aspx
members.example.com --> I want if someone opening this url will forward to this page:
www.example.com/members.aspx
How to setup this in my IIS 7?
There are a couple of options including setting up a new site in IIS and pointing it to the directory/page you want, however the most widely accepted method would be to use URL rewrite rules to configure the subdomain. The steps to do so are a little in depth to lay out in all their glory here, but I am providing a link to the iis web team document detailing how to configure an IIS rewrite rule in IIS7, this should get you started down the correct path to configure what you need.
Sorry for my english. Not native. My solution isn't perfect, but it works quite well in our enviroment and I hope it work for you too.
First of all, I suppose both DNS points to the same IP.
Then you create a new website, in the same port (usually 80) and edit it to receive "only" members.example.com users (Binding option).
That site will be only show to users using members... (and invisible to the rest)
Inside it, a simple html page like this:
Save it like "index.html" and configure the site to use it as default web page.
Each time a user goes to members... will be instant-trasnfered to the page of ur choice.
The beaty of this system is that you can use the same method to move from HTTP to HTTPS and be transparent to the user.
Hope this helps.