I Accidentally Changed WordPress URL And Now My Site Is Broken

At times you may mistakenly change the URL in WordPress dashboard and when you do this not only will your site not load correctly but you will also lose access to your login page making it impossible to correct the URL. This fortunately is an easy fix.

Fixing The WordPress URL In The Database

First login to your cPanel and find PHPMyAdmin.

phpMyAdmin In Cpanel


Once you are in phpMyAdmin in the left hand menu you will see database names, click on the database for your site to expand the database and show tables.


Hint: If you are not sure of your database name you can find this in your website directory in the file wp-config.php

The table you want is X_options (X will be replace whichever prefix was used when the databse was created), click on X_options. This will open a window on the right hand. Find X_options table on right hand side and click "Browse".

WordPress Options Table

Once you click browse you will see all the rows in the table, we want to edit the first two rows where you will see your URL is set.

WordPress Change URL Rows

Click on "Edit" and change the URL as you need. Once done click "Go" in bottom right hand corner.

That's it, your URL is changed and your site and dashboard should now be accesible.

  • wordpress url, wordpress broken, phpmyadmin
  • 10 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

Improve Wordpress Performance With Litespeed LsCache

Litespeeds LScache for Wordpress outperforms every other Wordpress cache we have tested. Not only...

Running Out Of Disk Space What can I Do?

If you are running out of disk space and you are using Wordpress you can either add additional...

Migrating Wordpress Like A Pro With SSH

  Migrating your Wordpress site with SSH can streamline things, avoid some potential issues, and...

Installing VersionPress Plugin

VersionPress is an excellent way to version, sync, and stage Wordpress sites. VersionPress uses...

Wordpress admin-ajax.php CPU Use

The introduction of the Wordpress Heartbeat API has some advantages, and of couse disadvantages....