Site broken after changing site domain

I encountered an error when trying to enable a live link for my local website (see attached image). After doing some research, I tried changing the site domain in Local from mysite.local to mysite.localwp to see if that would fix the issue.

However, not only did this fail to resolve the problem, but I’m now also unable to properly load my site and WordPress admin. The layout looks broken (see image), and I can’t change the site domain back because Local just keeps loading when I attempt to do so.

Please, is it possible to fix this?

Hey @cormadev!

There are a few ways you could go about trying to fix this. You can try adjusting the URL in your /wp-config.php file, database, or if you want you could simply export it, delete it and reimport it.

Those steps would look like this:

  • Locate the site files on your machine, and save a copy of them to your desktop. If you click Go to Site Folder under your site name it should take you right to where they are located.
  • Once you have those copied, completely delete the site from Local
  • Restart Local/your machine
  • Reimport the site back into Local. You can refer here on how to Restore from only Local site files

Hello Nick!

So I first tried to add this to my wp-config.php

define(‘WP_HOME’,‘http://cormadev.local’);
define(‘WP_SITEURL’,‘http://cormadev.local’);

right above:

/* That’s all, stop editing! Happy publishing. */


This unfortunately didn’t change anything. So now I zipped the whole folder to import it all over again, but now I’m getting a 502 error (see image)

Oh man, I think I completely messed it up now.. Second time my website is broken using Local. Last time I had to make it all over again, I hope that’s not the case now..

Would you be able to get into a call the moment you’re available?

Hi @cormadev!

We don’t offer any virtual support but I’m still happy to help get you going here!

If you have a zip copy of the site saved, and then have deleted the site from your Local app, I would go ahead and quit Local and do a full reboot of your device to try and refresh here.

If you’re still having trouble can you share some more details for us?

  • What is your OS?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

Keep us posted and we’d be happy to help further!

1 Like

Unfortunately I’m still having issues starting my website.

  • OS: Windows 10 Home

  • Local: Version 9.2.5+6810

  • Log (I have a few looks like 1 up to 9, will the file below be enough?)

    local-lightning.log (575.6 KB)

Thank you for your time!

1 Like

Hello Nick! I wanted to let you know that the issue is fixed. Thank you very much for your time, I really appreciate! :handshake:

1 Like

I’m glad to hear you were able to get it resolved @cormadev! Thank you for following up and letting us know :green_heart: