Can you help me configuring an add-on domain?

Discussion in 'Site & Server Administration' started by Subliminal, Dec 13, 2007.

  1. #1
    Subliminal, Dec 13, 2007 IP
  2. techie007

    techie007 Peon

    Messages:
    261
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hey Subliminal,

    You can not browse the public_html via browser, when main.com is called, it browses the main directory that is public_html. In brief, when you browse http://www.main.com is called, it displays the index page of the directory public_html.

    Now, reply to your question:
    If you have created the addon domain from cpanel and if you have pointed the nameservers to the one that main.com has then the below links should work:

    1. http://addon.com
    2. http://addon.main.com (pointing is not necessary)
    3. http://main.com/addon/ (pointing is not necessary)
    4. http://www.main.com/addon

    http://addon.main.com/addon (you can create a virtual directory, but i personally think that it would be confusing and conflicting)

    Below links are not possible until you alter the properties of public_html, which is not advisable:

    1. http://www.main.com/public_html/addon
    2. http://main.com/public_html/addon
    3. http://addon.main.com/public_html/addon

    Hope this helps...:D
     
    techie007, Dec 13, 2007 IP
  3. Subliminal

    Subliminal Active Member

    Messages:
    322
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Ok so what am i going to write to .htaccess?
     
    Subliminal, Dec 13, 2007 IP
  4. techie007

    techie007 Peon

    Messages:
    261
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    are u using cpanel? if so, u don't need to write anything in .htaccess file yourself
     
    techie007, Dec 13, 2007 IP
  5. Subliminal

    Subliminal Active Member

    Messages:
    322
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Yes cpanel.
    What should i do?
     
    Subliminal, Dec 13, 2007 IP
  6. techie007

    techie007 Peon

    Messages:
    261
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Sure i would love to take you through all the steps:

    1. If you want to add an addon domain say addon.com, then it should be owned by you and you should have the registration details. Alrite, now you just need to login to registration control panel and change the nameservers of it to point to your main.com (here it means, you need to use the same nameservers that used in main.com).

    2. Now, add the addon.com as an addon domain from the cpanel, so it would be created as a sub directory. This directory will be the location for the addon domain's files, just as public_html is the location for your primary domain's files.
    3. All you need to do is now, upload the contents in the addon directory and browse addon.com.

    Note: If you have changed the nameservers recently then you should allow few hours for it to propagate across the globe and if it is still not working then clear your system cache and cookies as well as flush the dns of your network.

    Thanks,
     
    techie007, Dec 13, 2007 IP
    Subliminal likes this.
  7. sreyas

    sreyas Well-Known Member

    Messages:
    128
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #7
    Hi,

    Please go to "redirects" section in your cpanel. There you can redirect your subdomain to addon domain and also can ensure www. is there on every request.
     
    sreyas, Dec 14, 2007 IP
    Subliminal likes this.