Hi there,
I have a problem with my WP 1-Click Installation.

I followed this tutorial on how to secure Apache with Let’s Encrypt on Ubuntu, which was really helpful, to install an SSL certificate on my DO server.

Now I can access the website via https, but all wordpress media (newly uploaded images as well) are still served via http. This results in a “Not secure because of mixed Media” warning message in the browser.

Having searched through various forums, I cannot seem to find a fix for this besides using wordpress plugins, what doesn’t seem to be a proper fix to me though.

Also, since having installed the SSL certificate, the website loads really slowly. Well, actually the content (HTML, CSS, Images) seem to be loading very quickly, but although all elements are visible and the site is interactive, it loads for 15s+ more afterwards. Does this have something to do with the mixed media issue?

Any help would be greatly appreciated!

Best regards,
Christian

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Hello, @cemu

You can use a plugin to do a search and replace in the database and update all the http references for the domain name and update them to be with https instead. You can make sure that the WP_HOME`` andSITE_URL`“ are set to be with https as needed as sometimes this is the only bit that needs to be modified.

You can check out plugins like https://wordpress.org/plugins/better-search-replace/

As for the performance issue you can monitor the droplet’s resource usage and make sure it’s not a droplet/server wide issue rather than an issue with the website.

You can also check out our tutorial on How to Speed Up WordPress Asset Delivery Using DigitalOcean Spaces CDN

Hope that this helps!
Regards,
Alex

by Hanif Jetha
In this Solutions guide, we'll demonstrate how to offload your WordPress Media Library and other static assets to DigitalOcean Spaces, and deliver these to end users using the DigitalOcean Spaces CDN.
  • I’m not a fan of spaces, I would use hummingbird plugin.

    It does many things I used to do manually. Enable gzip, minify html, css, js, etc

    • Hi, @Taux1c

      That should work as well. The hummingbird plugin is widely used and has a lot of downloads/installations and the general feedback is good as well. Feel free to share more of your experience.

      Regards,
      Alex

Hey alexdo, thanks for your quick answer!
Okay we will go with a plugin then I guess. Seems to be working fine so far, I just thought it may not be the ideal solution.

Regarding the performance issues it seems that the svg logo was causing the long post-loading times. Not sure why, as it worked fine on the local installation, but going with a png version fixed it.

  • Hello, @cemu

    The plugin should do the work, just make sure to take a backup of your database and files so you can be on the safe side.

    I’m glad you’ve fixed the performance issue as well.

    Regards,
    Alex

Submit an Answer