Multiple Domains, to the same account

Discussion in 'Hosting Services / Control Panel' started by ebonovic, May 21, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Where would I submit my request to have additional domain names point to my "core" domain name...

    www.mysite.com

    I would like to setup at least one possible two additional "alias" domain names:
    www.mysitelongversionname.com -> www.mysite.com

    Also, Is there a Fee in setting this up?
    And does DiscountASP.net do registration of domain names? or should I register the name first.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    You can email [email protected] to setup domain pointer.

    Domain pointer costs $15 setup

    quote:Originally posted by ebonovic

    Where would I submit my request to have additional domain names point to my "core" domain name...

    www.mysite.com

    I would like to setup at least one possible two additional "alias" domain names:
    www.mysitelongversionname.com -> www.mysite.com

    Also, Is there a Fee in setting this up?
    And does DiscountASP.net do registration of domain names? or should I register the name first.

    </blockquote id="quote"></font id="quote">
     
  3. I would be interested in pointing an already-registered domain name to a subdirectory on my DiscountASP.NET account, ie www.mysite2.com -> www.mysite.com/mysite2/ Does the mentioned domain pointer service allow me to do this? Thanks for any assistance.
     
  4. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

    No. Our Domain Pointer Addon points to the document root.

    DiscountASP.NET
     
  5. quote:Originally posted by dasp

    No. Our Domain Pointer Addon points to the document root.
    </blockquote id="quote"></font id="quote">
    Is there anything in the HTTP headers that could be used to tell which domain was requested?
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    Not clear what your question is, please elaborate.

    thx
    quote:Originally posted by GraemeF

    quote:Originally posted by dasp

    No. Our Domain Pointer Addon points to the document root.
    </blockquote id="quote"></font id="quote">
    Is there anything in the HTTP headers that could be used to tell which domain was requested?
    </blockquote id="quote"></font id="quote">
     
  7. Sorry :)

    What I mean is, as the second domain can only be forwarded to the root of the first, would it be possible to tell the difference between the two in script at the root?

    So, in the default.aspx file at the root you could check the RequestURI and see if it was for "www.mysitelongversionname.com" or "www.mysite.com" and return different content as appropriate?
    Or would it show "www.mysite.com" in either case?

    Not sure if that's clearer or not ;)
     
  8. Well, I don't know if you still need this info or not, if not, maybe someone else can find it useful.

    This ASP script will help you in doing what you want:

    <%
    Dim HTTPHost

    HTTPHost = Lcase(Request.ServerVariables("HTTP_HOST"))

    Select Case HTTPHost
    Case "www.domain1.com", "domain1.com"
    Response.Redirect "http://www.domain1.com/domain1folder"
    Case "www.domain2.com", "domain2.com.co"
    Response.Redirect "http://www.domain2.com/domain2folder"
    End Select
    %>

    This would work great to host several low traffic, low needs sites with just one account, except for the fact that DASP does not support email on domain pointers.
     
  9. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

    No, there is no email service for domain pointers.
     
  10. Dear,
    1- Must I change the DNS of the domain pointer ?domain1.com? to DASP DNS :
    ns1.discontasp.net
    ns2.discontasp.net
    Which will take from 48 to 72 hours to be effect?
    2- Must I but this script in the home page?
    3- Must I change the home page name from ? index.html? to ?index.asp? ?
    Thank you
     
  11. Many Webhosts are now offering multiple domain support for single account. Discountasp should consider this option. This would help many.
     
  12. When I tried the code sample above I had to change it to


    <%
    Dim HTTPHost

    HTTPHost = Lcase(Request.ServerVariables("HTTP_HOST"))

    Select Case HTTPHost
    Case "www.domain1.com", "domain1.com"
    Response.Redirect (http://www.domain1.com/domain1folder)
    Case "www.domain2.com", "domain2.com.co"
    Response.Redirect (http://www.domain2.com/domain2folder)
    End Select
    %>


    to stop the errors

    and all I got was a blank screen????
     
  13. In the response object wrap the URL in quotes.

    F.Y.I.,this can alsobe donewith ElseIf statements:
    <%
    Dim Caught
    Caught = Request.ServerVariables("SERVER_NAME")
    If Caught = "www.firstsite.com" Then
    Response.Redirect("http://msdn1.microsoft.com/en-us/default.aspx")
    ElseIf Caught = "secondsite.com" Then
    Response.Redirect("http://www.google.com")
    Else
    Response.Redirect("http://www.mainsite.com/thisfolder/")
    End If
    %>

    ...In the above example make sure /thisfolder/ on the site has a default document.
     
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