This site WordPress URL settings do not match host set in local

Issue Summary

I tried to change the website name by Site Domain under overview.
Can’t access the site even if I change it back to its original name

Troubleshooting Questions

Can you assist to retrieve the site I started or must I delete and start all over again?

System Details

host is nginx
I work on a MAC (OS BIG SUR 11.2)

Maybe you can try restoring the site to a new one in Local? You can use a backup of the site, or try using the files for the site by following the steps outlined in the “Restoring From Only Local Site files” section of this help doc:

Hi Ben,

Thank you but I am still struggling because I don’t know what the original URL setting was. And because I was so bright to fiddle with the settings. I can get access to the site.
I am new at this and believe me I dropped what I found and it declines the files.
I searched high and low in all files hoping to find the original URL settings but I can’t find it.

Regards,

Adele

What that message is saying is that Local thinks the URL for the site should be one thing, but for whatever reason, the URL within the database is another value.

There could be a lot of underlying reasons for this, but this is going to be tricky to diagnose if you are unsure what the original domain was.

You could try guessing what the original domain was by looking at the path:

Basically, Local will convert the site’s name so that:

  • Spaces are transformed to dashes
  • special characters like apostrophe or question mark are stripped out

If guessing that domain doesn’t work, then you could try using wpcli in the terminal.

To do this:

  1. Right-click on the site in Local and select “Open Site Shell”

  2. Issue this command to get the domain that’s within the DB:

    wp option get siteurl --skip-plugins --skip-themes
    

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.