Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    263
    Thanks
    183
    Thanked 0 Times in 0 Posts

    I want to add 2 domains to the same site

    I want to add 2 domains to the same site, my main domain "domian1.com" is now who working and I want to add the second domain "domian2.com" to the same site also so if they user opened domain1.com/about he will get the same page if he typed domain2.com/about

    how I can do this?
    by the way the second domain is the domain of my reseller

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by Mido™ View Post
    I want to add 2 domains to the same site, my main domain "domian1.com" is now who working and I want to add the second domain "domian2.com" to the same site also so if they user opened domain1.com/about he will get the same page if he typed domain2.com/about

    how I can do this?
    There should be a park domain option on your hosting control panel to allow you to park additional domains on the same folder as your main domain.

    If the first domain is an add-on domain that has its own folder then simply set up the second domain as another add-on domain referencing the same folder.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    Mido™ (08-15-2013)

  • #3
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    263
    Thanks
    183
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by felgall View Post
    There should be a park domain option on your hosting control panel to allow you to park additional domains on the same folder as your main domain.

    If the first domain is an add-on domain that has its own folder then simply set up the second domain as another add-on domain referencing the same folder.
    I tried to do this but I got this error message :

    domian2.com is already configured. Sorry, the domain 'domian2.com' is already setup (remove it from httpd.conf with '/scripts/killvhost domian2.com', and be sure to excise it from /var/cpanel/userdata/)

    also as I said the domian2.com is the domain of my reseller as my name servers of my reseller are
    n1.domian2.com

  • #4
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    263
    Thanks
    183
    Thanked 0 Times in 0 Posts
    also is there another way rather than the parked domain?

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Two domains pointing at the same account are always one main domain and one parked domain. Since the second domain you want to point at the same content is currently pointing at different content you will need to remove it and re add it to get it to point where you now want it to point.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    Mido™ (08-20-2013)

  • #6
    New Coder
    Join Date
    Jul 2013
    Posts
    39
    Thanks
    0
    Thanked 2 Times in 2 Posts
    why you did not try redirecting the domain2 to domain1...?

  • #7
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    263
    Thanks
    183
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by blogfreakz View Post
    why you did not try redirecting the domain2 to domain1...?
    The redirecting won' make the pages take the second domain name, so if I opened http://domain2.com/about it won't give me the about page!

  • #8
    Regular Coder
    Join Date
    Aug 2009
    Location
    in .........
    Posts
    263
    Thanks
    183
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by felgall View Post
    Two domains pointing at the same account are always one main domain and one parked domain. Since the second domain you want to point at the same content is currently pointing at different content you will need to remove it and re add it to get it to point where you now want it to point.
    so the second domain mustn't be used in any thing, but I do this by htaccess?

  • #9
    New Coder
    Join Date
    Aug 2013
    Posts
    25
    Thanks
    2
    Thanked 2 Times in 1 Post
    Please provide a clear solution. I too wants to do this task.


  •  

    Posting Permissions

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