CONTACT US: 1-800-622-4403
Domains To Datacenter Since 1994

Hosting Multiple Domains on One IP Address (SuperAccount)

Often, it may not be very cost effective to host client sites individually. Instead, you may want to store individual sites as subdirectories of a single main site, and then redirect incoming URLs to the proper client page. Fortunately, ASP makes this task fairly simple.

Putting it Together

The example below is the actual content of the ASP page.  This page should be the first page in your website (the main wwwroot directory) and the filename should be index.asp or default.asp.

For our example, let's suppose we have a main Web site at Now, in addition, we have two clients that have domains of and  We decide to create subdirectories for each of the clients and redirect the domains to the appropriate page.  You will need to decide how to manage your site content and file structure.  It's recommended that you place each website in their own subdirectory with unique and easily identifiable directory names.  The Example shows the main page's completed code; The ASP code should be the only content of the ASP page, no HTML is needed.


<% @Language = "VBScript" %>
<% Option Explicit
Response.Buffer = True

Dim HostURL
HostURL = LCase(Request.ServerVariables("HTTP_HOST"))

Response.Status = "301 Moved Permanently"

'*  this select/case will check a list of domains
'*  that are assigned to your account.  Make sure
'*  you use lowercase values for the domain names
'*  and URL's

Select Case HostURL ' Find which site to redirect to

    Case "", ""
        Response.AddHeader "Location", ""

    Case "", ""
        Response.AddHeader "Location", ""

    Case "", ""
        Response.AddHeader "Location", ""

    Case Else ' Default to main page
        Response.AddHeader "Location", ""

End Select


The Result

A quick way to send traffic for your domains to their appropriate content.  From this example, if a web visitor would browse they would be redirected to it's main web page (index.htm):

Once the visitor has reached the main page of the website (by the above script), the navigation and links for the domain will be relative to the "thirdwebsitedirectory" directory.

Buy SSL Certificates starting at $39

Buy Hosted Exchange - money back guarantee

Buy WordPress Hosting - money back guarantree

Buy Windows VPS Hosting - money back guarantree


  1. How To Install WordPress
  2. Hosting Multiple Domains on One IP Address (SuperAccount)
  3. How to modify CSS on Mobile Devices
  4. Change Your Domain Name using WordPress
  5. How to enable .NET 4.0 for your POA Account.
  6. How to remove Pages/Posts from Wordpress Search
  7. How to disable all Wordpress plugins using MySQL
  8. Remove index.php from Wordpress URL
  9. How to move a Drupal site from one host to another
  10. How to move a Wordpress site from one host to another
  11. How to change the Wordpress site URL
  12. Masking Your Email from Spammers with WordPress + PHP
  13. How to Redirect a Registered Domain
  14. Changing the Wordpress URL Path to web root "/" or another path
  15. Simple Way to Secure a WordPress Website
  16. How to restart your website in Control Panel.
  17. How to Block Referral SPAM from your Website
  18. Creating Campaigns in Google Analytics
  19. Switching over to a New InfoQuest account.
  20. Stopping your website through the customer control panel (POA).
  21. Deleting a domain from your account.
  22. Where do I go to view my web stats (AWStats) for my site?
  23. How to change Wordpress siteURL to IP address using phpmyadmin
  24. How to enable "anonymous access" to browse my site.
  25. How to access Wordpress files.
  26. How to add a dedicated/exclusive IP address to your account.
  27. How to upload website content to the server.
  28. Update Directory Path for Website.
  29. Password protecting a folder on your site on POA.
  30. Add Structured Data Location Schema to your website
  31. How to delete WordPress Comments using phpmyadmin
  32. How to password protect a specific directory on your POA Hosting Account.
  33. Adding A Domain To My Account. (POA)
  34. Using a Web.Config Redirect
  35. Using CDOSYS with POA accounts without authentication
  36. Permanent 301 redirect
  37. Using CDOSYS with POA accounts with authentication
  38. How to force https in WordPress using web.config
  39. How to force https in WordPress using htaccess

Feedback and Knowledge Base