Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Oct 2006
    Posts
    8

    Default two domains to the same account

    hello

    please i want help.


    i have two domains , the first it was added in the server to be domain for the account customer but i want to add to the account second domain and browsing the same account either folders or files.

    for example :

    the first domain : domain1.com
    the seconde : domain2.com

    the domain1.com was created with the account and have folders colde vb and we can browsing the folder as domain1.com/vb. now i want join the domain2.com with the same account and can be browsing vb by www.domain2.com/vb.

    thanks advance

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    Perhaps you want to create an Addon domain in your first account. That way one cpanel can host both domains. The addon domain files will appear as a directory under the first domain.

  3. #3
    Member
    Join Date
    Oct 2006
    Posts
    8

    Default

    Quote Originally Posted by jayh38 View Post
    Perhaps you want to create an Addon domain in your first account. That way one cpanel can host both domains. The addon domain files will appear as a directory under the first domain.
    hello jayh.

    yes i did that but the problem browsing just that folder what created for that domain. i want the second domain can browsing all folders in the account like first domain.

    best regards

  4. #4
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    I see. That would not be possible to do as far as I know. Perhaps someone else
    has a solution.

  5. #5
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    You want to use the "Parked Domains" feature to park domain2 over domain1. This is different than the AddOn domain feature.

  6. #6
    Member
    Join Date
    Oct 2006
    Posts
    8

    Default

    Quote Originally Posted by jayh38 View Post
    I see. That would not be possible to do as far as I know. Perhaps someone else
    has a solution.
    thanks jayh38 for help

    Quote Originally Posted by RickG View Post
    You want to use the "Parked Domains" feature to park domain2 over domain1. This is different than the AddOn domain feature.
    hello Rick.

    thanks it's working now but that just direction to the domain1 but i want the possibitly of browsing all the site by domain2 without direction.

  7. #7
    Member
    Join Date
    Mar 2006
    Posts
    378

    Default

    you may try with iFrame on your page
    Tweakservers | Professional Server Setup & Security Hardening
    Authorised SmarterTools Reseller, SSL Certificate & TRUSTe Privacy Policy

  8. #8
    Member
    Join Date
    Oct 2006
    Posts
    8

    Default

    Quote Originally Posted by tweakservers View Post
    you may try with iFrame on your page
    this not a good solution , i'm sure there are best solution

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge nvez's Avatar
    Join Date
    Jul 2006
    Posts
    40

    Default

    Create as an add-on domain then put the following in a .htaccess file in the root

    RewriteEngine On
    RewriteRule ^(.*)$ http://domain1.com/$1

    I didn't have the time to check this but it should work, what it does is rewrite anything after the slash to the old domain (without redirecting) -- however, i think it would work faster like this:

    RewriteEngine On
    RewriteRule ^(.*)$ /home/domain1/public_html/$1

    That would be an internall redirect which would be faster, but again, I haven't checked.

Similar Threads & Tags
Similar threads

  1. Multiple Domains / One Account
    By grayloon in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-05-2007, 01:43 PM
  2. 2 domains to 1 account ??
    By mattsmack in forum New User Questions
    Replies: 1
    Last Post: 02-01-2007, 08:58 AM
  3. All Domains point to one account
    By elitehst in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-17-2005, 03:10 AM
  4. How many domains on one account
    By DWHS.net in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-14-2002, 06:54 PM
  5. multiple domains on one account
    By totalufo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-23-2002, 04:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube