Locked Out of My Website After Changing Domain Name in WordPress

Hi y’all…
I’m having a frustrating issue with my WordPress site. I recently went to Settings → General and changed the name of my website, then sent a confirmation email to myself. After that, I got automatically logged out. When I opened my email and clicked the confirmation link, I received an error saying “IP address could not be found.”

Now, I can’t access either the old or new domain names, and I can’t even get into wp-admin to troubleshoot.

I’m not sure what to do next. Is there a way to regain access to my site? Also, I’m having trouble finding contact information for WordPress support—does anyone know where I can find it? :wink:

Hi Liz!

I’m sorry to hear you’re having trouble with your WordPress site. Let’s try to get you back on track!

Regaining Access to Your WordPress Site

  1. Edit the wp-config.php File:
  • Access your WordPress hosting panel (like cPanel) or use an FTP client.
  • Locate and edit the wp-config.php file.
  • Add the following lines at the top of the file, replacing https://www.example.com with your site’s URL:

PHP

define('WP_SITEURL', 'https://www.example.com');
define('WP_HOME', 'https://www.example.com');
  • Save the file and try accessing your WordPress admin panel again.
  1. Use phpMyAdmin:
  • Log in to your hosting panel and open phpMyAdmin.
  • Select your WordPress database.
  • Find the wp_options table and look for the siteurl and home rows.
  • Update these values to your correct site URL.
  • Save the changes and try accessing your site again.

Contacting WordPress Support

WordPress doesn’t offer direct support, but you can get help through their community forums:

  • WordPress Support Forums: WordPress Support
  • WordPress.com Support (for paid plans): Log in to your account and use the live chat or email options available under the ‘Contact Us’ section.

If you’re using a hosting provider, they might also offer support for WordPress issues.

I hope this helps!

Hi Liz!

I’m sorry to hear you’re having trouble with your WordPress site. Let’s try to get you back on track!

Regaining Access to Your WordPress Site

Edit the wp-config.php File:

  1. Access your WordPress hosting panel (like cPanel) or use an FTP client.
  2. Locate and edit the wp-config.php file.
  3. Add the following lines at the top of the file, replacing https://www.example.com with your site’s URL:

php

define('WP_SITEURL', 'https://www.example.com');
define('WP_HOME', 'https://www.example.com');
  1. Save the file and try accessing your WordPress admin panel again.

Use phpMyAdmin:

  1. Log in to your hosting panel and open phpMyAdmin.
  2. Select your WordPress database.
  3. Find the wp_options table and look for the siteurl and home rows.
  4. Update these values to your correct site URL.
  5. Save the changes and try accessing your site again.

If you’re using a hosting provider, they might also offer support for WordPress issues.

I hope this helps! If you’re still having trouble, let me know, and we can try some additional troubleshooting steps.

I once ran into a similar issue with my WordPress site after changing the domain name and getting locked out. I couldn’t access the wp-admin or the new domain either. I resolved it by accessing the database through phpMyAdmin or a similar tool offered by my hosting provider. I navigated to the wp_options table and updated the siteurl and home fields with the correct URL. This action restored access to the admin panel. As for contacting WordPress support, their official site usually has support options or forums, but your hosting provider’s support team might also offer direct help for such issues.