Opening WP-Admin does not lead to the local site, but to the site at the hoster

I have a site and the associated database in my local folder.

When I open Local, I start the site and open it. This takes me to localhost:10008 in the browser, i.e. to the local site.

If I go to WP-Admin, the backend of the local site is not called up, but that of the site at my hoster, which is online. I have already accidentally made changes here, but I want to test them on the local site first.

How do I open the backend of the local site?

Hi @Thobie -

Is your domain in Local set to the same domain as your live site?

Sam

The website I am editing is xyz-hamburg.de (initial part changed), so the website is online.

The domain in Local is xyz-hamburg.local. The file folder is also xyz-hamburg.

If I click on WP Admin, the browser closes:

localhost:10008/wp-admin/?localwp_auto_login=1

Then immediately to:

https://www.xyz-hamburg.de/wp-login.php?redirect_to=https%3A%2F%2Fwww.xyz-hamburg.de%2Fwp-admin%2Fuser%2F&reauth=1

Problem solved.

The Local dashboard displayed the following error message:

Warning! The WordPress URL settings of this website do not match the host set in Local.

I clicked on the Fix it button. Now I can access the backend of the local site.

1 Like

Glad to hear it @Thobie! Thank you for sharing here.

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