Can't access website since i've changed domain name

Hi

Since i’ve changed my domain name on Local and the web adress in WP, i can’t access to my website.

I have tried changing back the domain name to its previous status (but can’t change the website address though) and still can’t access to my website.

Any idea please ?

Issue Summary

Can’t access website since i’ve changed domain name

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    one

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    yes

Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

System Details

  • Which version of Local is being used?
    6 7 0 - 6 3 4 7

  • What Operating System (OS) and OS version is being used?
    Mac os Ventura

  • Attach the Local Log. See this Help Doc for instructions on how to do so:

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 there @loltuner -

Before moving forward with anything, I would recommend making a backup of your Local site. Here’s an article about that:

Have you tried to manually set the Site URL using the wp-config.php file?

You should be able to update the Site URL through the wp-config.php file (which can be accessed by heading into the Local app > Go to site folder > app > public > wp-config.php).

Then you can add these lines of code (replacing with the appropriate domain)

define( 'WP_HOME' , 'http://example.com' );

define( 'WP_SITEURL' , 'http://example.com' );

There is a tradeoff here, though. This will hardcode the site URL and you will no longer be able to update them within the WordPress settings in the Dashboard.

The other option is to update the functions.php file (as described in this article ) and then the code can be removed and will not hardcode the site URL.

Can you give this a try and let me know if this helps?

Sam

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