Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    4

    Default Domain aliasing

    Trying to get domainX.com to be an alias (redirect, but still use domainX.com domain name) of domainY.com/forum

    Note: I don't want domainY.com/ to be exposed-just the forum subfolder. How do I configure this in cpanel? I already have the aliases domain nameservers set.

    In other words, how do I change the Domain Root from /public_html to, say, /public_html/forum?

    Thanks
    Last edited by csjesse; 07-13-2010 at 04:01 PM.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Location
    PK
    Posts
    443

    Default

    Quote Originally Posted by csjesse View Post
    Trying to get domainX.com to be an alias (redirect, but still use domainX.com domain name) of domainY.com/forum

    Note: I don't want domainY.com/ to be exposed-just the forum subfolder. How do I configure this in cpanel? I already have the aliases domain nameservers set.

    In other words, how do I change the Domain Root from /public_html to, say, /public_html/forum?

    Thanks
    If I understand you correctly you want domainX.com to load contents from public_html/forum. In that case, why don't you make domainX.com an addon loading from the folder forum via "cPanel >> Domains >> Addon Domains".
    If you want to change a root of an already parked domain or the main domain, that needs to be done manually in cPanel userdata file located at /var/cpanel/userdata/username/domain.com and then Apache configuration needs rebuilt.
    1 solution works for all problems. Trying harder!
    HostMasterTips - Understanding Tech Support

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    4

    Default

    Quote Originally Posted by JPC-Howard View Post
    If I understand you correctly you want domainX.com to load contents from public_html/forum. In that case, why don't you make domainX.com an addon loading from the folder forum via "cPanel >> Domains >> Addon Domains".
    If you want to change a root of an already parked domain or the main domain, that needs to be done manually in cPanel userdata file located at /var/cpanel/userdata/username/domain.com and then Apache configuration needs rebuilt.
    Howard, you're right. I've added it as an addon loading from public_html/forum.
    After setting the domain's nameservers (which is already registered - godaddy), should it point to the contents of public_html/forum automatically?

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by csjesse View Post
    Howard, you're right. I've added it as an addon loading from public_html/forum.
    After setting the domain's nameservers (which is already registered - godaddy), should it point to the contents of public_html/forum automatically?
    If the domain is successfully setup as an add-on domain in cPanel with a document root of the desired "forum" sub-directory then the answer is yes that the domain should automatically serve content from the forum directory path. This will require that the correct name servers are set at the domain registrar; for example, you should be able to use the same name servers that are used for other domains on the same cPanel server. When a domain is added in cPanel, (either a parked domain or an add-on domain), a DNS zone is created so that your name servers should automatically be able to handle any incoming DNS requests for the newly-setup domain.
    Last edited by cPanelDon; 07-13-2010 at 05:44 PM. Reason: Clarification

  5. #5
    Registered User
    Join Date
    Jul 2010
    Posts
    4

    Default

    Don, it redirects correctly. However, once a user goes to 'domainX.com' the address changes to 'domainY.com/forum'. Is there a way to have it appear as 'domainX.com/forum'?

    Thanks.

  6. #6
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by csjesse View Post
    Don, it redirects correctly. However, once a user goes to 'domainX.com' the address changes to 'domainY.com/forum'. Is there a way to have it appear as 'domainX.com/forum'?

    Thanks.
    I believe I may have misunderstood the desired intention.

    To help clarify, please identify which of the following options most closely resembles what you are trying to accomplish:
    • A.) Have "domainX.tld" show the contents of "/forum" without redirecting; the contents of "/forum" are served directly by visiting "domainX.tld" without using or typing "/forum"
    • B.) Have "domainY.tld" show the contents of "/forum" without redirecting; the contents of "/forum" are served directly by visiting "domainY.tld" without using or typing "/forum"
    • C.) Have "domainX.tld" be parked on top of "domainY.tld" -- making the two domains interchangeable where each shows the same content and without redirecting
    • D.) Have "domainY.tld" be parked on top of "domainX.tld" -- making the two domains interchangeable where each shows the same content and without redirecting
    • E.) Other, none of the above; please provide more specific detail
    Last edited by cPanelDon; 07-14-2010 at 08:22 PM. Reason: Clarification

  7. #7
    Registered User
    Join Date
    Jul 2010
    Posts
    4

    Default

    B.) Have "domainY.tld" show the contents of "/forum" without redirecting; the contents of "/forum" are served directly by visiting "domainY.tld" without using or typing "/forum"

    I believe that is closest...here are more details-

    Right now I have domainY.tld as an addon domain with a a document root: public_html/forum and redirecting to http://domainX.tld/forum/general-discussion/ (so that users start on that forum subcategory).

    When a user visits domainY.tld, it directs to http://domainX.tld/forum/general-discussion/, like it should. I want the address bar to show http://domainY.tld/forum/general-discussion/. Moreover, if the user navigates to another page, I would like the address bar to continue showing the root as domainY.tld/.. Is this possible?

    Thanks Don.

  8. #8
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by csjesse View Post
    B.) Have "domainY.tld" show the contents of "/forum" without redirecting; the contents of "/forum" are served directly by visiting "domainY.tld" without using or typing "/forum"

    I believe that is closest...here are more details-

    Right now I have domainY.tld as an addon domain with a a document root: public_html/forum and redirecting to http://domainX.tld/forum/general-discussion/ (so that users start on that forum subcategory).

    When a user visits domainY.tld, it directs to http://domainX.tld/forum/general-discussion/, like it should. I want the address bar to show http://domainY.tld/forum/general-discussion/. Moreover, if the user navigates to another page, I would like the address bar to continue showing the root as domainY.tld/.. Is this possible?

    Thanks Don.
    Without seeing the configuration directly it's difficult for me to accurately determine what is necessary; if the issue is solely within the redirect or mod_rewrite entries, (e.g., in an Apache .htaccess file), this may be easy to fix without having to reconfigure the domain name that the forums use natively. If there is difficulty using cPanel to setup the desired redirects you're welcome to submit a support request and include in the subject/title "Attn Don" and I'll be happy to take a look at it for you.
    Last edited by cPanelDon; 07-15-2010 at 10:21 PM. Reason: Reevaluated details for clarification

Similar Threads & Tags
Similar threads

  1. DNS Aliasing
    By ogt00l in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 02-23-2010, 04:22 PM
  2. Domain Aliasing
    By linkup in forum New User Questions
    Replies: 1
    Last Post: 06-04-2008, 10:24 AM
  3. Aliasing a sub domain to it's parent domain
    By ninefour in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-31-2006, 03:59 AM
  4. www aliasing
    By ras` in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-27-2006, 06:42 PM
  5. How to setup domain aliasing (parking) in bulk?
    By matt621 in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 06-23-2005, 03:18 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube