SSL_ERROR_BAD_CERT_DOMAIN

SSL certificate is valid only for website without www

I set my site with SSL certificate. It is on posidonia.ga but if I connect then Firefox shows this warning: “”Websites guarantee their identity through certificates. Firefox does not consider this site reliable as it uses a certificate that is not valid for www.posidonia.ga. The certificate is valid only for posidonia.ga.

Error code: SSL_ERROR_BAD_CERT_DOMAIN””

So how could I connect to https://www.posidonia.ga if my SSL certificate is valid only for posidonia.ga (without www)?

I’ve read I could solve adding these lines to .htaccess:

RewriteEngine on
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

But the problem is still there.

Please help, thanks.

RewriteEngine on
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

I expect connecting https://www.posidonia.ga without warning: SSL_ERROR_BAD_CERT_DOMAIN

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)