Domain with sub domain

Posted on 2011-11-01
Last Modified: 2012-05-12
 I am having a route domain. I have two sub domains. For ex Domain Name When i browse, it show images that i put in this domain. Now how i created sub domain and I want to show different images when i enter this subdomain url name.

Kindly suggest me and give some idea about this concept.

Question by:guvera
    LVL 7

    Expert Comment

    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)
    LVL 8

    Author Comment


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

    LVL 27

    Accepted Solution

    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.
    LVL 8

    Author Closing Comment

    Its good and useful. I found my solution ownself.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    Occasionally you run into the website or two that will not resolve properly using your own DNS servers.  Some people simply set up global forwarders for their DNS server.  I don’t recommend doing this because it can cause problems resolving addresse…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now