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.
For.eg, you want to set
domain.com, and test2.domain.com pointing to different folders in your websites.

Login to Control Panel, and create a domain pointer for your main websites.
Add
test2.domain.com 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 domain.com's index. asp or default document, you have to add this code.
If Trim(Request.ServerVariables ("HTTP_HOST")) = "
test2.domain.com" Then
'Redirect to test2 folder (Remember to put index.asp inside the folders)
Response.Redirect ("test2")
Else
'Do nothing.
End if

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

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

CDONTs is no longer supported on Windows 2003 server and later.  Microsoft introduced CDO back...

What ASP components do you have installed?

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

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

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