Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Subdomain SSL redirect to main directory

Discussion in 'General Discussion' started by inxangoo, Aug 25, 2009.

  1. inxangoo

    inxangoo Registered

    Joined:
    Dec 11, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    I'm new to cPanel (on a dedicated server) and am trying to figure out how to do the following:

    My hostname is domain.com and i have setup a SSL for secure.domain.com (to be used as the shared certificate.) With DirectAdmin I was able to point secure.domain.com to the hostname and all users could use the shared SSL by pointing to domain.com/~username.

    So, if the hostname is domain.com and the SSL is secure.domain.com, how can I make the SSL subdomain point directly to the hostname?

    I hope that makes sense. :)
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    68
    To redirect, you will have to write the rewrite rule for the redirection in your domain.com .htaccess file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice