subdomain does not work

Discussion in 'Hosting Services / Control Panel' started by prettyeagle, Oct 15, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I bought subdomain service yesterday, but I can not get subdomain work.
    below is the script in the root default page default.asp:

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
    <%
    If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("pe-tarma.pretty-eagle.com.cn") ) > 0 Then
    Response.Redirect("/pe-tarma")
    ElseIf InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("sophia.pretty-eagle.com.cn") ) > 0 Then
    Response.Redirect("/sophia/default.asp")

    Else
    Response.Redirect("/english/default.asp")

    End If
    %>

    I believe the script is correct according DISCOUNTASP's message. But we can not visit pe-tarma.pretty-eagle.com.cn (of course www.pretty-eagle.com.cn/pe-tarma can work) Who can let me know what else shall we do?

    Every time the support staff is saying"we do not provide development assistance." I hope someone can give full useful advice.

    thanks.

    Bob
     
  2. Try using fully qualified URLs.

    <%@LANGUAGE='VBSCRIPT' CODEPAGE='936'%>
    <%
    If InStr( UCase(Request.ServerVariables('SERVER_NAME')), UCase('pe-tarma.pretty-eagle.com.cn') ) > 0 Then
    Response.Redirect('http://www.pretty-eagle.com.cn/pe-tarma</font>')
    ElseIf InStr( UCase(Request.ServerVariables('SERVER_NAME')), UCase('sophia.pretty-eagle.com.cn') ) > 0 Then
    Response.Redirect('http://www.pretty-eagle.com.cn/sophia/default.asp</font>')

    Else
    Response.Redirect('http://www.pretty-eagle.com.cn/english/default.asp</font>')

    End If
    %>

    Sherm

    DiscountASP.net
    www.discountASP.net
     
  3. Hi,
    Also try to add the redirected page to the string, same way you are doing the Else redirect.
    Instead of Response.Redirect("/pe-tarma") it would be Response.Redirect("/pe-tarma/default.asp")
    If nothing else at least add the trailing slash...
     
  4. Hi
    I am afraid it is of nohelp. I had already changed the script as below:

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
    <%
    If InStr(UCase(Request.ServerVariables("SERVER_NAME")), UCase("pe-tarma.pretty-eagle.com.cn")) > 0 Then
    Response.Redirect("/pe-tarma/default.asp")
    ElseIf InStr(UCase(Request.ServerVariables("SERVER_NAME")), UCase("sophia.pretty-eagle.com.cn")) > 0 Then
    Response.Redirect("/sophia/default.asp")

    Else
    Response.Redirect("/english/default.asp")

    End If
    %>

    subdomain is still facing the same problem. when we visit www.pretty-eagle.com.cn it will be redirected to /english/default.asp correctly, so, I Guess it is of not relating to the script.Because if there is error in redirecting script, then when we visit pe-tarma.pretty-eagle.com.cn it should redirect to other redirect page, for example it could redirect to "Else" redirect ("/english/default.asp"). Problem is when we use subdomain, it can not open. 404 error.
     
  5. There seems to be a problem with the entries in the DNS server for this domain name. I've notice that this is a ticket in our que concerning this. You should refer to ticket 1121708 concerning this issue.

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     
  6. hello Sherman,

    I 've copied your script with http://www, and the problem is the same.

    So, I think there should be other problems instead of the scripting.

    Besides of the scripting, anything others shall we do when we want to use subdomain?
     
  7. Hello Rcp,

    Can you provide full hyperlink for ticket 1121708?

    How to view this ticket?

    Not all people is so fimiliar with your website, please clearly instruct.

    Thanks.

    Bob Xing
     
  8. Bob,

    It's not a web document you can access, but a reference number for DASP internally.

    I contacted support in reference to that ticket number 1121708 to find out what is going on. Apparently you had already contacted them about the problem and they discovered there is indeed a problem with the DNS. They are investigating it and will get back to you when the problem is resolved.

    Your scripting is correct, it's not a problem with the coding! The problem is somewhere with the DNS configuration on our end.

    Thank you for your patience, and we sincerely apologize for the difficulty.

    Sherm

    DiscountASP.net
    www.discountASP.net
     
  9. Hello Sherman,


    Thanks for your help.


    Yes, my script is correct. My problems solved, I had set URL transfer also.


    Though I don't know whether it is the problem, my subdomain is in work now.


    I am very happy, thank you!


    Bob
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page