How do I set multiple domain or subdomain without using my website limits?

For multiple domain to work correctly, you have to set domain pointer for your site., you want to set, and pointing to different folders in your websites.

Login to Control Panel, and create a domain pointer for your main websites.
Add as domain pointer.
And then in your home directory, you have to create 1 new folders to host your subdomain. Just called it test2
Remember to create the folder inside the public_html on that domain name.

After that, in your's index. asp or default document, you have to add this code.
If Trim(Request.ServerVariables ("HTTP_HOST")) = "" Then
'Redirect to test2 folder (Remember to put index.asp inside the folders)
Response.Redirect ("test2")
'Do nothing.
End if

Was this answer helpful?

 Print this Article

Also Read

How to connect to MSSQL from ASP Coding?

Before you can access your MS-SQL Server database from your ASP code , you need to connect to it...

I get an error 'Server.CreateObject Failed' when I try to use CDONTs. What can I do?


I got 500 Error when viewing my Site ? Please help !!!

This normally happens because you turn on the Friendly Error on your IE. By default, IE always...

How do I send email from ASP using SMTP Authentication?

Please note that our mail server is configured with Authentication. Below is the code snippet...

What ASP components do you have installed?

We have ASPMail, ASPUpload, ASPimage, SA File-Up, Jmail, ASP Postit and ASPHttp, ASP TreeView,...