The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel/WHM subdomain redirection

Discussion in 'General Discussion' started by TheTEK, May 11, 2014.

  1. TheTEK

    TheTEK Registered

    Joined:
    May 11, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am curious as to how to do this.

    I have noticed that when I go to "domain.com/whm" or "domain.com/cpanel" everything behaves the way that it should. I can even put "customerdomain.com/cpanel" and it redirects correctly to "companydomain.com/cpanel"

    But when i go to "whm.domain.com" (ssl installed on this domain) it works correctly.

    But if one my customers go their cpanel account "cpanel.customerdomain.com" (no ssl installed on this domain) it generates ssl untrusted error. How do I get around this? Any suggestions?

    I have searched all throughout the internet, and each time it references how to create a subdomain or redirect a subdomain in cpanel.

    Thanks in advance.
     
  2. TheTEK

    TheTEK Registered

    Joined:
    May 11, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Also if anyone knows how to redirect the cPanel/WHM proxy domains (whm,cpanel,webdisk,webmail) from:

    "cpanel.customersdomain.com" to "customersdomain.com/cpanel" that would be great.

    I found one user that did it, but there weren't any instructions.
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have a look at the options here:
    WHM » Server Configuration » Tweak Settings, Redirection tab.
     
  4. TheTEK

    TheTEK Registered

    Joined:
    May 11, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I definitely have. And there is not anything listed to what I am trying to do.

    when my customer types in their brower:

    whm.xyz123domain.com or cpanel.xyz123domain.com,

    I would like for it to redirect it to:

    xyz123domain.com/whm or xyz123domain.com/cpanel

    is this possible?
     
  5. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    942
    Likes Received:
    57
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    You might need to mess with "proxy subdomains" under "domains" in tweak settings.

    I would speculate if you have this option enabled:

    You could then make a cpanel.domain.com subdomain and use a standard htaccess redirect to domain.com/cpanel
     
Loading...

Share This Page