File URL Change Post LE SSL Upgrade Multisite

Did a Trellis Upgrade to LE SSL for a Trellis setup with Bedrock and Sage following what I wrote down here: https://imwz.io/trellis-do-ssl-upgrade/ . Seems to have worked well. Colleague crawled the site and hit many 404s for images like https://domain.com/app/uploads/2014/07/x.jpg still. I thought wp search-replace --network http://domain.com https://domain.com --skip-columns=guid did the trick. These image permalinks are fine I see in the backend. Only the file urls still seem to be http. But I am not certain that is the issue. Any ideas how to deal with this and change the file urls anyways?

Did see .env on production still used urls with http instead of https. Changed it… But how to reload?

Re-deploy your site to have the .env file reflect the latest changes

1 Like