Broken pages after SSL been installed on Apache?

hi guys, after running this tutorial:

My ssl serves broken page, how to fix it?

Try checking your site with:

or provide a more detailed explanation (picture) of the problem.

Hi @grx7

you have terrible mixed content warnings / blocks.

Use FireFox / Chrome, then Ctrl + Shift + I, open the Console.

Loading this page says:

SSL_ERROR_BAD_CERT_DOMAIN - certificate only valid with

Never load content via an ip address.

Change these links to relative links


or correct absolute links:

Then the browser loads these scripts -> your page will work.

it’s a standard message from WP by default. I didn’t touch it.


As Juergen said you can’t load parts of a secure page by IP address, it just doesn’t work.

Somewhere in the wordpress settings you gave it the IP address instead of the domain name. I think it’s under settings -> general settings. The same settings page has the site title and tagline settings. Wordpress shouldn’t have the IP address in any of it’s settings.

you nailed it :slight_smile:

thanks a lot. it works now.

After changing it in WP admin Settings–> General it works fine

Would you guys recommend I keep my .htaccess to always redirect towards https?

1 Like

Happy to see you fixed your mixed content warnings.

If your certificate works and if you are sure you can check the renew (no expired certificate): Yes, a redirect is good.

Better is the HSTS header, excellent is the preload directive (HSTS per browser).

thanks Juergen!

I saw this in regards to auto renewing the SSL certificate:


shows that I need to run:

$ sudo certbot renew --dry-run

How do you guys auto renew yours?

--dry-run has some limitations and uses the testsystem. So if you want to renew your certificates,

sudo certbot renew

is correct.

I have my own client :wink:

thanks for helping out guys.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.