How to host multiple domains in one account

You can host multiple domains under one account by adding additional domains as domain pointers to the primary domain name for your account, creating subdirectories under the root directory of your primary domain and configuring them as web applications, then redirecting the domain pointer(s) to the subdirectory you created.

Adding a Domain Pointer
  1. Log in to Control Panel.
  2. In the left menu, click "Domain Pointers."
  3. Click the "Order Domain Pointer" tab.
  4. In the text box, enter the name of the domain you wish to add as a domain pointer. Make sure this domain is already registered.
  5. Click "Add."

If you are not planning on changing your name servers to DiscountASP.NET's, you will need to create/edit the A record for the domain you are adding as a pointer to the IP address of your site. You can use this tool to find your site's IP address.

If you want to change the name servers for your domain with your current registrar to DiscountASP.NET's, see these Knowledge Base articles for our name server information, and instructions on changing your name servers with various registrars:
General DiscountASP.NET DNS server information
Name server update instructions


Configuring a Subdirectory as a Web Application

  1. Create the subdirectory via FTP. For information on configuring various FTP programs to access your site, see this section of our Knowledge Base.
  2. Log in to Control Panel.
  3. In the left side menu, click the link labeled "Web Application Tool."
  4. In the directory tree on the left, click on the directory you want to mark as a web application. Once you click on the directory, on the right side in the grey box, a button labeled "Install Application" will appear.
  5. Click the "Install Application" button.

You may also want to look into disabling inheritance for child applications in your root web.config if necessary. See these links for details:


Accomplishing the Redirect

There are two ways to redirect a domain pointer to a subdirectory: using the URL Rewrite module in IIS, or programmatically with a redirect script. For information on the URL Rewrite module, see these links:

For sample code on how to redirect a domain pointer to a subdirectory programmatically (it is written for subdomains, but applicable to domain pointers as well), see this Knowledge Base article:
How to redirect a subdomain to a subdirectory



For further assistance with redirecting requests programmatically and with URL Rewrite, please visit our community forum. Unfortunately, the support department cannot assist with redirection questions via helpdesk tickets.



Keywords: nameserver nameservers