Help!
Saturday, 30 August 2014
Home arrow FAQs arrow Web arrow Where can I find more information about programming in ASP?

Support
Server Information
Moving your Website
Admin Flash Tutorials
Reseller Flash Tutorials
Hsphere Users Guide
SiteStudio Users Guide
Where can I find more information about programming in ASP?

ASPHole http://www.asphole.com is a great site for ASP resources! Another good place to look is at http://www.genusa.com/asp where you will find many good links and components. http://www.activeserverpages.com is another great resource for Active Server Pages information. Finally, http://www.aspin.com another great resource.

If I have multiple domains pointing to the same web, can I use ASP to find out which domain they used to reach my site?

This information is useful when you have multiple domains pointing to your IP and you want to redirect to the proper page according to domain name. You can use the following command in an ASP script to find the domain name used: Request.ServerVariables("HTTP_HOST") The following page shows a simple way to redirect to each domain name:

<% Dim HTTPHost HTTPHost = Lcase(Request.ServerVariables("HTTP_HOST")) If HTTPHost = "www.domain1.com" then Response.Redirect ("http://www.domain1.com/dir1") End If If HTTPHost = "www.domain2.com" then Response.Redirect ("http://www.domain2.com/dir2") End If %>

You can place this script as your default.asp and place your web content in sub-webs or subdirectories. If your domain name is
http://www.sample.com and someone types http://www.sample.com in their browser, they will be redirected to http://www.sample.com/www.sample.com/. The content for http://www.sample.com would be in that directory. If you also had http://www.test.com pointing to your IP and someone typed http://www.test.com in the browser, they would be redirected to http://www.sample.com/test You can see how this can be very useful.


Top!