Domain with sub domain

Hi,
 I am having a route domain. I have two sub domains. For ex Domain Name www.abc.com. When i browse, it show images that i put in this domain. Now how i created sub domain www.a.abc.com and www.b.abc.com. I want to show different images when i enter this subdomain url name.

Kindly suggest me and give some idea about this concept.

Thanks
Guvera
LVL 8
guveraAsked:
Who is Participating?
 
SteveConnect With a Mentor Commented:
you'd normally set all of the domains to the public IP of the server in your public DNS settings, and the server would then use a different virtual directory in IIS for each. This is easiest using host headers for it to establish which site is which.

This link provides some variables that will return what the user typed into their browser, so I assume its possible to perform functions based on this.
http://stackoverflow.com/questions/757806/get-the-exact-url-the-user-typed-into-the-browser
0
 
aamodtCommented:
you need to change the IIS to forward to a diffrent domain when entering one folder. ill gues you have created the DNS domains ?

if not its a CNAME (alias)
0
 
guveraAuthor Commented:
Hi,

 Thanks for your reply. I want to create this subdomain programmatically using asp.net. Is it possible?

Thanks
Guvera
0
 
guveraAuthor Commented:
Its good and useful. I found my solution ownself.
0
All Courses

From novice to tech pro — start learning today.