Mixed Content Error in WordPress After Enabling HTTPS on NGINX Server

Discussion in 'General' started by hknerdr, Dec 29, 2024 at 12:25 PM.

  1. hknerdr

    hknerdr New Member

    Hello to all
    I transferred my wordpress site from cpanel litespeed server to ispconfig nginx azure ubuntu server.
    I did all configurations etc. now site works but without some images. I am getting this error:
    [​IMG]
    [​IMG]

    If i modify the url in wordpress from settings-general, then site doesn't work.
    Need your help.
    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    WordPress places http URLs in an HTTPS document. You must set the Site URL to https in WordPress.
     
  3. hknerdr

    hknerdr New Member

    Thank you but when I do that, this time site is not loading at all…
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Check the URL you set in WordPress that there are no typos in the domain name and subdomain. If you can reach the site by https, which you did according to the errors you posted, then it's a WP issue only. It might also be that you are using a cache in WP, which needs to be emptied, or you have a custom .htaccess file containing a wrong URL.
     
  5. hknerdr

    hknerdr New Member

    Thanks I will check the cache but I migrated from litespeed. Also when I changed the URL in Wordpress I just put “s” after http, so there should be anything wrong with the site address. Does nginx work with .htaccess?
     
  6. hknerdr

    hknerdr New Member

    I solved the problem putting cloudflare SSL mode to strict.
    Thanks for the help.
     
    ahrasis likes this.
  7. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    .htaccess is for apache2, so it will definitely not work with nginx.
     

Share This Page