rlelek Posted August 10, 2009 Share Posted August 10, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/169615-help-with-ssl/ Share on other sites More sharing options...
cpace1983 Posted September 7, 2009 Share Posted September 7, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/169615-help-with-ssl/#findComment-914387 Share on other sites More sharing options...
steviewdr Posted September 8, 2009 Share Posted September 8, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/169615-help-with-ssl/#findComment-914665 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.