• Hello,

    I need to migrate my WordPress sites using HTTP to HTTPS but some CSS are keep using HTTP which make my sites looking all weird with white background and text all scattered everywhere on the pages.

    When using page inspect in Mozilla Firefox, it reveal some CSS, as I say, still using HTTP instead of HTTPS. It seem to be related to the used theme. I’d tried another theme and the same thing still happening afterwards.

    How to make it without re-writing all my websites from A to Z?

    Best regards,

    Guillaume

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,
    You can install plugin (really simple ssl) replace all url to https or execute mysql query change url to https

    UPDATE wp_options SET option_value = replace(option_value, ‘oldurl’, ‘newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
    UPDATE wp_posts SET guid = replace(guid, ‘oldurl’,’newurl’);
    UPDATE wp_posts SET post_content = replace(post_content, ‘oldurl’, ‘newurl’);
    UPDATE wp_postmeta SET meta_value = replace(meta_value,’oldurl’,’newurl’);

    Thread Starter Guillaume G. Soucy

    (@guillaumesoucy)

    Hello,

    I just tried Really Simple SSL and I now having a error message saying there a redirect issue, when disabling 301 redirect, the site can load but with the same looking than before.

    For the MySQL way, the host is hosting multiples WP sites using one database per site, do I need to precise which DB to use first?

    I’m using Nginx Proxy because I’m hosting more than one VM requiring the use of ports 80/443,

    I’m getting the certificate with Let’s Encrypt using the Nginx Proxy WebGUI, is the use of Nginx Proxy could interfere with WordPress SSL migration that I’m trying to perform?

    Thank-you,

    Guillaume

    Thread Starter Guillaume G. Soucy

    (@guillaumesoucy)

    I just create a new WP site and the same problem is happening even with a fresh site.

    I have a solution other. You can try
    Add to wp-config.php

    
    define('WP_HOME','https://' . $_SERVER['SERVER_NAME']);
    define('WP_SITEURL','https://' . $_SERVER['SERVER_NAME']); 
    
    Thread Starter Guillaume G. Soucy

    (@guillaumesoucy)

    Hello,

    Ok, will try that out but, will only be able to do so at night, as it will disturb the websites and some other apps running.

    Will post the results here later on. Sometime after 11PM US & Canada eastern time.

    Thank-you!

    Guillaume

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to correctly migrate from HTTP to HTTPS?’ is closed to new replies.