View Full Version : subdomain
gornati
11-30-2011, 04:21 PM
Do i have to order the unlimited subdomain + unique ip, just to have 1 single subdomain, which i need to point to another ip?
keikoraca
11-30-2011, 07:00 PM
If you are using our name servers yes you will need to order the add-on to be able to create a sub-domain. Do you really need to point it to a particular IP address? Would a CNAME record be an option?
shenging
01-04-2012, 01:17 AM
I have "Unlimited Subdomain Includes Unique IP" on discountasp
I've never been able to configure :mad: using this :
If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("subdomain1.YourHostedDomainName.com") ) > 0 Then
Response.Redirect("/subdomain1")
End If
Someone can help me ??
Tasslehoff
01-04-2012, 09:03 AM
I'm not sure I understand what the problem is. If you're trying to redirect a subdomain to another server, you just need to point it to the other server's IP address.
shenging
01-04-2012, 09:59 PM
Hi , I have "Unlimited Subdomain Includes Unique IP" on discountasp
I checked your configuration about subdomains: https://support.discountasp.net/KB/a...directory.aspx
I added some like this:
If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("mySubdomainName.YourHostedDomainName.com") ) > 0 Then
Response.Redirect("/myfolder")
End If
And the actual result is:
request: mySubdomainName.YourHostedDomainName.com
response: mySubdomainName.YourHostedDomainName.com/"foldername" and it's wrong to me, I don't need this "foldername" on url, just mySubdomainName.YourHostedDomainName.com as a new root site, I'm doing something wrong ? Thanks.
Tasslehoff
01-05-2012, 02:33 PM
You'll need to use the URL Rewrite module to modify the URL so that it looks the way you want it to. Please see these blogs for more information:
http://blog.discountasp.net/url-rewrite-2-0-for-iis-7-is-here/
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
vBulletin® ©Jelsoft Enterprises Ltd.