I try to import from XAMPP to Local and I can't

Hi I’m importing a blog from XAMPP and the default IP 127.0.0.1 is in the URL and I can’t access to the dashboard.
How can I change this?
Thanks
Fernando

Hi Fernando,

You can fix that with WP-CLI. Here’s how:

  1. Right-click on the site in Local
  2. Go to ‘Open Site SSH’
  3. Enter wp search-replace '//127.0.0.1' '//newdomain.com' (newdomain.com being your Local site domain)
  4. Done!
1 Like