I just created a subdomain ony my domain named:


However, when I try to access it, I get a warning:

enter image description here

I'm not sure how to fix this. My .htaccess file is as follows:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_NAME} ^(www\.)?moonlightbeachclub\.com$
RewriteRule ^ - [F]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


# END WordPress

A friend of mine configured this for me, so I do not really know much about if there's a problem there. Is there a way to use my main SSL on my subdomains as well?

Any help would be appreciated!

closed as off-topic by Zoredache, MadHatter, HopelessN00b, Jenny D, kasperd Aug 29 '14 at 11:14

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – MadHatter, kasperd
  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – Zoredache, Jenny D
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Your certificate needs to be valid for every domain you are serving. This might be done through a wildcard, by setting up alternative names (SAN). – Zoredache Aug 27 '14 at 22:51
  • Where do I do that on cpanel? – codeninja Aug 27 '14 at 22:53
  • You don't do that on cpanel. Its a setting in the certificate itself - it comes from the CA that issued the certificate. If you need a wildcard or SAN cert, you need to actually get one issued. – Joe Sniderman Aug 27 '14 at 23:09
  • 3
    This question appears to be off-topic because you asked Where do I do that on cpanel? – HopelessN00b Aug 28 '14 at 18:38

To use one SSL certificate across subdomains, it must be a wildcard SSL certificate, or specifically enumerate the subdomains for which it is valid with SAN. That might not be what you bought.

  • 1
    I don't know why this was downvoted, since it is the correct answer. – Michael Hampton Aug 28 '14 at 18:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.