Siteurl change strips “https://” prefix?
-
I have a WP installation that needs moving to a new site URL.
Usually, I do this with wp-cli (for both option “site” and “home”). In the past I’ve changed it in the database too.
This time, however, when I do this, the “https://” part of the URL is missing. The site loads, but all links on the page go to a raw path and therefore 404.
Does anyone know what might be causing this? I’ve tried the operation using a vanilla fresh download of WP and it works OK so I assume it’s some setting in the site that’s doing it.
BTW when I add this to wp-config.php the same problem occurs:
update_option(‘siteurl’,’https://example.com’);
update_option(‘home’,’https://example.com’);
- The topic ‘Siteurl change strips “https://” prefix?’ is closed to new replies.