subdomain addon

Discussion in 'Getting started' started by sitecreator4u, Jul 15, 2009.

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

    New to the this forum.

    I purchased a subdomain addon. At godaddy.com I put in the discountasp.net nameservers for domain name "aspnetprojects.net"

    My main (root) site is websitedesigninnewyork.com

    In the default.aspx page in root directory I put in this code:

    <%
    If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("aspnetprojects.net.websitedesigninnewyork.com") ) > 0 Then
    Response.Redirect("/aspnetprojects")
    End If
    %>

    also tried:

    <%
    If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("aspnetprojects.net") ) > 0 Then
    Response.Redirect("/aspnetprojects")
    End If
    %>

    It's not working. When I type in my browser:

    http://www.aspnetprojects.net/

    I get:

    Server not found. Firefox can't find the server at www.aspnetprojects.net.

    Would really appreciate help. I put in a ticket and was told to go to the forum to get help.

    Also I created in the control panel a virtual directory for the folder "aspnetprojects".

    Sincerely,
    Patti Byrne
     
  2. mjp

    mjp

    Is the space between the c and the o in your code?

    UCase("aspnetprojects.net.websitedesigninnewyork.c om")

    But more importantly, you have to add aspnetprojects.net as a root domain pointer to your account. Right now you have no domain pointers specified, so any (local) redirect to that domain will not work.

    The domain has to be a pointer here because it needs a DNS entry in our system. Right now the name servers for the domain point requests to us, but we have no DNS entries for the domain.
     
  3. The problem you currently have is nothing to do with your page code so don't bother looking at that at the moment. There could be a bug in your page code but that's not the problem right now - it looks like your DNS is not correctly setup because there is no ping reply from the aspnetprojects.net domain. See below - the first two are ping tests to aspnetprojects.net and the last one is a ping test to my discountASP.NET domain; You'll see that there's no reply from yours but a valid reply from mine.

    Are you sure you've done everything you need to do in the godaddy control panel to get this working? I can see you've changed the nameservers over to the discountasp.net servers but I don't know what else you need to do with godaddy to get a domain working with DASP because I don't use them. I do know that with other registrars, you need a DNS A record setup to point to the DASP web servers or it will not work at all.

     
  4. thank you both very much for your replys.

    I didn't know I needed to do more I will check that out with godaddy.

    Thank you for letting me know about the space. After I fix the DNS issue I'll make sure to change that.

    Really appreciate the help.

    When I purchased the addon domain discountasp.net gave me an unique IP address. if you have the time can you let me know is that what you think I should be using when I go to godaddy to try and work this out?

    hope to hear back,
    Sincerely,
    Patti
     
  5. mjp I just purchased to add aspnetprojects.net as a root domain pointer. I'll still go look over at godaddy to see if I should do anything else.

    But If I don't see anything do you think adding aspnetprojects.net as a root domain pointer will do the trick and I don't need to do anything else?

    Thank you for your help.

    Patti Byrne
     
  6. Hi Patti,

    If I understand correctly, you are simply try to host the aspnetprojects.net domain under your root discountASP.NET domain websitedesigninnewyork.com. In other words, you want to be able to enter aspnetprojects.net in the browser address bar and be transparently redirected to the sub folder that resides inside the root websitedesigninnewyork.com.

    If that's correct, all you need to do to achieve this is login to your goddady control panel and add DNS A records for both the root and the 'www' extension to point to your DASP web server. A quick ping test to websitedesigninnewyork.com shows that your DASP web server is on the IP 96.31.42.108 so you need to add DNS A records at godaddy to point to that IP. (Successful ping test results are below).

    You can also verify the IP address of your discountASP.NET web server in the discountASP.NET control panel by looking at the DNS Manager setup..I wouldn't go changing any of the settings in there though.

    Note that any DNS changes can take up to 48hrs to complete traverse all DNS servers across the internet, but it often propagates much quicker than this.

    Finally, there is no need for a domain pointer at DASP to get this working because a DASP domain pointer is simply a DNS A record on the DASP servers. If you add the DNS A records yourself at the registrar side the outcome is the same - any request to your externally registered domain(s) is/are automatically forwarded to the DASP web server root. When the request hits the root you simply perform your own redirect based on the http request header just like you have coded into your default.aspx page, job done. Just one word of caution - I would recommend you perform a 301 redirect in your code and not a 302 because a 301 is generally considered to be more search engine friendly. Your current code in your default.aspx is performing a 302 redirect.

    Cheers,
    Joe

     
  7. it's working now! yay

    purchasing a addon: adding a domain pointer from discountasp.net did the trick.

    when a user types in their browser:

    www.aspnetprojects.net

    they get to the site which I'm really happy now that it is showing up.

    I would though if possible like to change something.

    In the browser when the user gets to the site the url is:

    http://www.aspnetprojects.net/aspnetprojects/

    Id prefer the url to be:

    http://www.aspnetprojects.net/
    or
    http://www.aspnetprojects.net/default.aspx

    below is the code I have in my root directory default.aspx file:

    <%
    If InStr( UCase(Request.ServerVariables("SERVER_NAME")), UCase("aspnetprojects.net") ) > 0 Then
    Response.Redirect("/aspnetprojects")
    End If
    %>

    If I can't change this it's not a biggie issue just thought if I can change something for that to happen it would be nice.

    Thank you all for your help. I would not of been able to do this without it.

    Sincerely,
    Patti Byrne
     
  8. mjp

    mjp

    If you have a unique IP, yes, but an A record pointing to a shared IP will fail.

    Remember that once the request gets to the shared IP on the web server the site is actually served using a name-based virtual host. So unless that hostname-to-IP mapping is in our system, the server doesn't know where to point the request.

    You can certainly point multiple domains to an account here without domain pointer add-ons, but for a lot of users it is just easier to add the root pointer, then they don't have to mess with a unique IP or A records. So I always suggest that first.
     
  9. hi mjp,

    ok so from want I got from your post. just let it go unless you want to start messing with something you know nothing about. lol

    adding a domain pointer. yeah I found it easier.

    I was just glad the site showed up.

    I don't want to fiddle with something I know nothing about.

    so it needs to stay as:

    http://www.aspnetprojects.net/aspnetprojects/

    instead of:

    http://www.aspnetprojects.net

    unless I want to fiddle with the A records?

    thank you for the info.

    Patti
     
  10. Thanks for clearing that up. I overlooked that detail because I had forgotten about the unique IP / Sub Domain Bundle included in my account.

    You may have seen other posts I've made where I mentioned that I didn't see the point of a domain pointer because no-one had ever explained the benefit of having one. This is the first time anyone has ever responded on this subject and it is clearer now. For me the unique IP option is the better choice.
     
  11. ...Probably getting harder to find my previous posts on this but we have given these steps in the past multiple times.
    On msftwise all of the domains are registered with GoDadddy.
    msftwise.com is the root domain.
    msftwise.net and .org are pointers, all point to the root but the site also has sub-domains.

    Eventually I'll get around to creating a Webcast for that and how to use subfolders with and without sub-domains, in Classic ASP and ASP.NET, while preserving the visitors URL.

    Feel free to make any requests. ;-)
    All the best,
    Mark
     
  12. mjp

    mjp

    No doubt that the unique IP is the Swiss army knife of add-on services. ;)

    For a lot of people though, DNS is kind of intimidating. I know hard core programmers who won't mess with it for fear of breaking something important. But once you have a handle on it, it is not all that complicated. And once you understand it, yeah, you may as well do all of your domain pointing through DNS/IP. I wouldn't argue against that.
     
  13. Hi mjp,

    yeah I am intimidated with the DNS thing. For now I'll just leave it. If that is the only way to make the url in the browser the way I want it I'll give it a try after I learn so many others things I still need to learn. lol

    wisemx How to use subfolders with a sub-domain, in Classic ASP and ASP.NET, while preserving the visitors URL is exactly want I'm looking for. A tutorial on this would be really great! In the meantime I'll see if I can find your other posts.

    I received an email with a new IP address for the Unique IP/Unlimited Subdomain add-on that I purchased.

    So I'll look into the DNS/IP way when I can.

    Thank you both for your feedbacks. The info is really helpful for me.

    Sincerely,
    Patti Byrne
     
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