Hi there,
I am hoping that one of you brilliant folks can help me as I am running into a brick wall. Here is what I am trying to do.
Lets use a domain name of koobos.com for an example.
I have a domain name koobos.com where I just bought a wildcard SSL cert so that subdomains will be secured.
My host, uses cpanel and I guess that this can not be achieved with sub-domains as I had hoped, however it will work with mod_rewrite.
What I would like to do is when someone types in: http://sub.koobos.com it will redirect (hidden) them to https://www.koobos.com/sub.php.
The trick for me has been to make it so there is a pattern I can follow and not have to add a new redirect for each new subdoamin. Also, making sure that the connection turns into SSL.
I have tried about 20 different variations of samples I have found without avail. If someone could help me out, that would be wonderful.
Thank you.