SSL certificate breaks https

I don’t think Matomo has to be blamed but my host says I should check with you upon this, so here’s my problem:
my SSL renewed automatically and my site and subdomain (included my Matomo installation) can no longer be accessed. I have a page without any CSS, just a login form and I cannot login.
How can I check the scripts & urls & related config file or the respective db for a correct alignment of HTTPS?
Or what should I tell my host?

UPDATE: with the help of my host we discovered that renaming .htaccess (to .htaccess_bk) we could see Matomo live again and login succesfully. So the question is: what code should contain the default .htaccess, or how can I generate it safely whilst I have it renamed to .htaccess_bk?

please help, i’m in panic mode because also my site is affected by this SSL issue

It’s been resolved.
For some reason, upon updating the SSL certificate, my htaccess contained a rewrite rule

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://checkout.stripe.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://checkout.stripe.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*)?mydomain.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*)?mydomain.com$      [NC]
RewriteRule .*\.(.*)$ http://%{REMOTE_ADDR}/$ [R,NC]

so I changed it to a simpler

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

So, unless you got something to say in terms of safety, I reckon this issue is resolved.

1 Like