Wordpress vs Site URL - Http vs Https problems

What issue or error are you experiencing?

I’m unsure why, but after using Local for a while, images stopped showing up when I viewed my site.

After doing a lot of digging, I believe the issue is this:

I’m using localhost, and in my General settings, both Wordpress and Site URLs were http.

All my images were http.

So, I changed the Site URL to https and deleted/reimported my images.

When I view my site the images are there! I confirmed that the URLs in the Media library are indeed https. Note that the PERMALINK URLs are https but the FILE URLs are still http.

The problem I’m having is when I continue to edit my site and try save, I get this error:

“Updating failed. You are probably offline.” Also, some of my plugins don’t work anymore.

So how do I resolve this - how can I have https for the images but still edit my site?


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc


System Details

  • Local Version:

  • Operating System (OS) and OS version:


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @wehoit! Are you able to change your Router Mode to Site Domains? That will allow for HTTPS across the site. It should automatically update some URLS but you still may need to do some manual S/R cleanup and flush any plugin/theme caches.

Preferences>Advanced>Router Mode

Hi @Nick-B

Thanks, yes, I ended up doing this to fix it .

I changed to Site Domain and then removed/reimported my images and it did solve the problem.

Thanks

1 Like

Glad that fixed things up for you @wehoit! Thank you for coming back and sharing.