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

In my post, I show you how to access WordPress admin after changing the URL, step by step.

As a new blogger on WordPress, I made the mistake of changing my site’s URL in my WordPress admin and saving it. I couldn’t access my site. After panicking for a while, I found the solution.

If you can’t log in to your WordPress admin, sign in to your hosting Cpanel account. Search for PHPMyAdmin, and select the database for your website. Finally, open the wp_options tab and edit the home and site URL fields. Save your changes and sign in to your WordPress admin.

Let us do that step by step.

Can’t Access WordPress Admin After Changing URL

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

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

In your WordPress admin, hover your mouse over ‘Settings’ and select ‘General’ from the menu.


In ‘General’ is your website address (URL).

Site URL

Here is the front end of this website.

Website URL

Next, I will change the site URL.

Change URL

Then Save Changes.

Save changes

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

Error message

Here is the front end of this website.

Front end

Let’s look at how to 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. If you did not bookmark the link, search through your emails from your hosting company.

I received this email when I bought hosting from Hostgator.

Cpanel URL link

Here is the login page for my website.

Cpanel login page

After you log in, you come to your Cpanel dashboard.

Cpanel dashboard

Step Two – Go To Phpmyadmin

In the search box, start typing phpmyadmin.

Type phpmyadmin

Select the ‘phpMyAdmin’ icon.

Select phpmyadmin icon

After a short delay, you go to your website’s database.

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

I recommend you backup your site before editing the database. Should you break your website, use the backup to restore it.

Step Three – Open The Database For Your Website

Should 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

Next, click on ‘wp_options’.

Click on options

On the right, check that this is the correct database. View the ‘SiteURL’ and ‘Home’ details.

Database site URL

This database is for Here is the database for my website.

Site URL

Step Four – Edit The Database

Next, change the URLs back to the original URL. To start, click on Edit.


Then, type the correct URL. I corrected this URL from ‘newblogrone’ to newblogr.

Edit URL

On the bottom right, click ‘Go’ to save your changes.

Click on go

The ‘SiteURL’ is updated. Now, complete the same steps for Home.

I have completed the update for this website’s database.

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.



As a new WordPress blogger, I changed my website’s URL and broke my website. After some research, I found the solution.

To log in to WordPress admin after changing the URL. Go to your Cpanel and search for phpMyAdmin. Then edit your website’s database.

You can update your site’s URL in your database. Be careful, don’t delete or make unnecessary edits to the database. You will break your site. I recommend you back up your website before making any edits.

Find the database for your website and click on wp_options. On the right, confirm you have opened the correct database.

Next, click on ‘Edit’ to update the ‘SiteURL’ and ‘home’ fields. After changing each data field. Click on ‘Go’ to save your changes. Now, you can access your WordPress admin.

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