Can’t Access WordPress Admin After Changing URL

Can’t Access WordPress Admin After Changing URL (Solved)

My post shows you how to access WordPress admin after changing the URL.

As a new blogger on WordPress, I made the mistake of changing my website’s URL in WordPress and saving it.

I couldn’t access my site. I found the solution to this problem.

Let us start.

Can’t Access WordPress Admin

Here Is What Happens When You Change Your Site’s URL

First, let’s look at how to create this problem.

Hover your mouse over Settings and select General.


Here is your website’s address.

Site URL

Here is the front end of this website.

Website URL

I changed the site’s URL.

Change URL

Then Save Changes.

Save changes

When you change your website’s URL, this happens.

Error message

Here is the front end of this website.

Front end

Let’s fix this problem.

Step One – Log In To The Hosting Cpanel

When you purchase a hosting package, you get a link to your website’s hosting Cpanel.

I received this email when I bought hosting from Hostgator.

Cpanel URL link

Here is the login page for my website.

Cpanel login page

Here is the Cpanel dashboard.

Cpanel dashboard

Step Two – Go To Phpmyadmin

Type phpmyadmin.

Type phpmyadmin

Click phpMyAdmin.

Select phpmyadmin icon

phpMyAdmin is your website’s database.

Your database is essential for your website. Making changes here could break your site.


I recommend backing up your website before editing the database.

Should you break your website, use the backup to restore it.

Step Three – Open The Database For Your Website

When you have more than one database. Find the database for the site that has the error.

Click on the plus icon next to the database name.

Open the database

Click wp_options.

Click on options

View the SiteURL and Home details.

Database site URL

Here is the database for my website.

Site URL

Step Four – Edit The Database

Click Edit.


Type the correct URL. I corrected this URL from newblogrone to newblogr.

Edit URL

Click Go to save your changes.

Click on go

Complete the same steps for Home.

Siteurl and Home are updated.

Two URLs updated

Step Five – Refresh Your WordPress Admin Page And Website

Return to your WordPress admin page and refresh.

Here is my WordPress admin page.

I can log in and edit my website.

WordPress admin

Here is the front end of the same website.


Frequently Asked Questions

What Happens If I Accidentally Change My WordPress URL?

If you accidentally change your WordPress URL, you may experience problems accessing your website and its content.

The WordPress URL is to identify and access your website, and changing it can cause the website to become inaccessible. In some cases, you may recover from this by restoring your WordPress URL to its original value.

However, if you can’t do this, you may need to restore your website from a backup.

It is essential to be careful when changing your WordPress URL and to make sure you have a backup of your website before making any changes.

Why Can’t I Get Into My WordPress Admin?

There are a few potential reasons you might not be able to access your WordPress admin area. Some possible causes are:

  • Incorrect login credentials: If you can’t log in to your WordPress admin area, are you using the wrong username or password? Ensure you have the correct login information, and try resetting your password if necessary.
  • Website downtime: If your website is down or experiencing technical issues, you may not be able to access the WordPress admin area. You will need to wait for the website to come back online before logging in.
  • Plugin or theme conflicts: If you have recently installed a new plugin or theme, it may cause a problem with your WordPress admin area. You may need to deactivate the plugin or theme to access your admin.
  • Browser or cache issues: Sometimes, browser or cache issues can prevent you from accessing your WordPress admin area. Try clearing your browser cache and cookies. Or use a different web browser to see if that helps.

Overall, there are several reasons you might not be able to access your WordPress admin.

If you can’t log in, try troubleshooting the issue by checking your login credentials, website downtime, and any plugin or theme conflicts.

How Do I Find My WordPress Admin Username And Password?

If you need to find your WordPress admin username and password, you can follow these steps:

  1. Check your WordPress configuration file: Your WordPress admin username and password are in your WordPress configuration file (wp-config.php). You can access this file using an FTP client or by accessing your website files through your web hosting control panel.
  2. Check your WordPress database: If you can’t find your WordPress admin username and password in the wp-config.php file, you can look for them in your WordPress database. Log in to your web hosting control panel and access your MySQL database.
  3. Reset your WordPress password: If you can’t find your WordPress admin username and password, you can reset your password using the “Lost your password?” link on the WordPress login page. This option allows you to create a new password and regain access to your WordPress admin area.

You can find your WordPress admin username and password by checking your WordPress configuration file and database. Or by resetting your password using the “Lost your password?” link on the login page.


You can update your site’s URL in the database. Be careful, don’t delete or make unnecessary edits to the database.

I recommend backing up your website before making any edits.

Find the database for your website and click wp_options. Confirm you opened the correct database.

Click Edit to update SiteURL and Home. Click Go to save your changes.

Alternatively, you can edit your site’s wp_config file. Check out my How to Recover Your WordPress Site After a URL Change article to learn more.

I hope you found my article informative. If you have any questions, please leave them in the comments. I check my account daily.






4 responses to “Can’t Access WordPress Admin After Changing URL (Solved)”

  1. Dee avatar

    Dude. I spent the last 2 hours looking for this solution. I still have a couple of broken links, but at least have access to my WordPress again. Thanks!

    1. newblogr avatar

      Hello Dee. I am glad my post helped you. Try refreshing your blog post URLs to fix the broken links. Go to Permalinks, select the correct setting and click save twice. Sometimes the URLs don’t update. Refreshing fixes that.

  2. Elisa avatar

    You’re such a God. Thanks so much!

    1. newblogr avatar

      Hello Elisa. You are welcome. Thank you for your comment.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.