Results 1 to 15 of 15
  1. #1

    Add On Domain Config Question

    Hi, I have a host that allows add-on domains.

    I have 2 domains: example1.com and example2.com

    The main account is example1.com

    I've configured example2.com with the nameservers to example1.com and set up the add-on domain to be a subdirectory/subdomain :
    ie example2.example1.com and example1.com/example2/

    How do I configure it so when someone goes to example2.com it doesn't just redirect it to example1.com/example2/ ???
    I'd like it to appear that example2.com is a separate location.

    Thanks! Mike


    By the way
    Here's what happened with the add-on domain from Cpanel (edited):
    ------------------------------------------------------------------
    The subdomain, example2.example1.com has been added.

    Nameserver ips for example2.com are: 12.23.345.567,12.23.345.568 send to CONTACTEMAIL (3) [3] Bind reconfiguring on SERVER using rndc
    Created DNS entry for example2.com

    Setup Mail forward example2.com -> example2.example1.com
    Setup example2.com OK
    Adding httpd.conf entry for example2.com to point to example2.example1.com
    Syncing Ftp Databases....Done

    example2.com has been setup. It can be accessed via the subdomain example2.example1.com. FTP access has been granted with the username XX and the password YY.

  2. #2
    Join Date
    Dec 2001
    Location
    127.0.0.1
    Posts
    3,640
    They will appear seperate, as the other domain is going to be ServerAlias'd (Apache term) to the subdomain.

  3. #3
    That's what I thought...

    So I don't have to setup any redirection under 'Addon Domain Maintenance' or for the subdomain?

    Currently when I go to example2.com or example2.example1.com it will redirect to my homepage example1.com ... and it will show that it redirected...
    i.e. the location bar shows example1.com

  4. #4
    ... I'd post the actual links to show you, but I don't know that it's allowed.

  5. #5
    Join Date
    Dec 2001
    Location
    127.0.0.1
    Posts
    3,640
    *wonders who's been snipping posts again*

  6. #6
    dang, guess I need over 5 posts

  7. #7
    Join Date
    Dec 2001
    Location
    127.0.0.1
    Posts
    3,640
    Quote Originally Posted by msopnet
    dang, guess I need over 5 posts
    Nope - I think a mod snipped some of our posts.

  8. #8
    oh, they downed my posts

  9. #9
    Last edited by msopnet; 11-07-2005 at 10:34 PM.

  10. #10
    all except the actual location are forwarding to http://msop.net ... and it shows in the location bar. is it doing this for you, too?

  11. #11
    Join Date
    Dec 2001
    Location
    127.0.0.1
    Posts
    3,640
    Quote Originally Posted by msopnet
    all except the actual location are forwarding to http://msop.net ... and it shows in the location bar. is it doing this for you, too?
    Yeah - are you sure there's no code on your site that could be doing that?

  12. #12
    yeah, I'm not sure what's happening. I should probably just contact support. I haven't configured anything in cPanel, besides adding a completely different subdomain, so I doubt it's anything I've changed.

  13. #13
    Thanks for your help, I just submitted a support request so if I find something out I'll post back here.

    I was just double-checking that I did everything correctly before I went and asked for their help.

  14. #14
    Join Date
    Dec 2002
    Location
    Quad Cities, Iowa
    Posts
    1,597
    Quote Originally Posted by msopnet
    How do I configure it so when someone goes to example2.com it doesn't just redirect it to example1.com/example2/ ???
    I'd like it to appear that example2.com is a separate location.

    Thanks! Mike
    You should check the .htaccess file in:

    /home/username/public_html/example2

    It seems somehow redirection was setup, and I am willing to bet that is where your problem lies.

    P.S. Some FTP programs will hide the .htaccess. If yours does, either find out how to disable that, or go to the File Manager in cPanel.
    Need a new Web Host?
    Become a Host Refugee and receive TRUE 24/7 Support

    cPanel + Fantastico, PHP4 or PHP5
    HostRefugee.com - See our current promotions

  15. #15
    sweet,

    What apparently happened is I had my home directory ( http://msop.net/ ) redirecting to my actual main page ( http://msop.net/home.html )

    When I added the new domain, it took those same redirections as being Relative... so it was using the redirect of "/" from the public_html directory and considering it the "/" for its own directory when in fact its home directory is "/silverschedule/"

    Thanks for all the help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •