Title: How to correctly migrate from HTTP to HTTPS?
Last modified: April 19, 2022

---

# How to correctly migrate from HTTP to HTTPS?

 *  [Guillaume G. Soucy](https://wordpress.org/support/users/guillaumesoucy/)
 * (@guillaumesoucy)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-correctly-migrate-from-http-to-https/)
 * 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
    -  This topic was modified 4 years, 1 month ago by [Guillaume G. Soucy](https://wordpress.org/support/users/guillaumesoucy/).
    -  This topic was modified 4 years, 1 month ago by [Guillaume G. Soucy](https://wordpress.org/support/users/guillaumesoucy/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Hoang](https://wordpress.org/support/users/hoangitt/)
 * (@hoangitt)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-correctly-migrate-from-http-to-https/#post-15569597)
 * 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](https://wordpress.org/support/users/guillaumesoucy/)
 * (@guillaumesoucy)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-correctly-migrate-from-http-to-https/#post-15569668)
 * 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](https://wordpress.org/support/users/guillaumesoucy/)
 * (@guillaumesoucy)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-correctly-migrate-from-http-to-https/#post-15569725)
 * I just create a new WP site and the same problem is happening even with a fresh
   site.
 *  [Hoang](https://wordpress.org/support/users/hoangitt/)
 * (@hoangitt)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-correctly-migrate-from-http-to-https/#post-15570116)
 * 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](https://wordpress.org/support/users/guillaumesoucy/)
 * (@guillaumesoucy)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-correctly-migrate-from-http-to-https/#post-15575661)
 * 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.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Guillaume G. Soucy](https://wordpress.org/support/users/guillaumesoucy/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/how-to-correctly-migrate-from-http-to-https/#post-15575661)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
