Subdomain SSL redirect to main directory

inxangoo

Registered
Dec 11, 2007
2
0
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. :)
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
To redirect, you will have to write the rewrite rule for the redirection in your domain.com .htaccess file.