Jump to content

Recommended Posts

Hello all,

 

Sorry if this is in the wrong category, in a bit of a rush with this client and already been searching google :)

When making a SSL certificate, the client wants the "www" prefix as part of the website/ssl

(so https://www.example.com rather than https://example.com)

 

now, the question I have is, since the "www" subdomain really just points to the root domain, would i need to create a subdomain in cPanel before I generate the CSR for it to work? or could i just append "www" and everything will work out fine?

 

Sorry if it's a little vague, I don't know how else to explain it, let me try again though...

Since http://www.example.com takes you to http://example.com, does the www subdomain even need to be physically created since it is already "understood"?

 

** Note **

The problem is not with the server/apache, we just need to make sure the SSL certificate doesn't blast out errors/warnings because it is https://www.example.com and not https://example.com. The page itself renders fine.

 

Hopefully that explains it? I'm trying..lol

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/169615-help-with-ssl/
Share on other sites

  • 4 weeks later...

You need to create the SSL certificate for whatever subdomain your secure site will be on.  For instance, www.example.com, example.com, and ftp.example.com are all different websites as far as SSL is concerned.

 

One thing that you can also do is redirect all https://www.example.com requests to https://example.com, which would mitigate this issue.  You can do this via .htaccess and a 301 Redirect.

Link to comment
https://forums.phpfreaks.com/topic/169615-help-with-ssl/#findComment-914387
Share on other sites

A SSL cert for example.com is different to www.example.com. You'd need two different certs.

 

What you could do is to forward http://www.example to https://example.com

 

A wildcart ssl cert will not work either, it would work for https://mail.example.com and https://www.example.com but not for https://example.com.

 

</my-two-cents>

-steve

Link to comment
https://forums.phpfreaks.com/topic/169615-help-with-ssl/#findComment-914665
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.