What is a SiteURL? Everything Beginners Need to Know

Written by

in

To fix the WordPress SiteURL error, you must update your website’s address settings so that the WordPress Address and Site Address match your actual domain. This error typically happens when you accidentally change your URLs in the dashboard or migrate your site, which completely breaks access to your administration panel.

Here is the complete, 5-step process to fix the error and restore your site immediately. Step 1: Access Your Website Files via FTP or cPanel

Because the SiteURL error locks you out of your dashboard, you cannot fix it from the admin interface.

Open your hosting control panel (like cPanel) or connect via an FTP client.

Navigate to the root directory of your website, usually named public_html. Locate the wp-config.php file in the root folder. Step 2: Edit the wp-config.php File

Hardcoding the correct URLs into your configuration file overrides the incorrect database settings. Right-click wp-config.php and choose Edit.

Scroll down right above the line that reads: /That’s all, stop editing! Happy publishing. */.

Paste the following code snippet (replace yourwebsite.com with your exact domain name):

define(‘WP_HOME’,’https://yourwebsite.com’); define(‘WP_SITEURL’,’https://yourwebsite.com’); Use code with caution. Save the changes and close the file.

Step 3: Update the Database via phpMyAdmin (Alternative Fix)

If editing wp-config.php does not solve the issue, you can modify the database tables directly. Log into cPanel and open phpMyAdmin. Select your WordPress database from the left-hand column. Click on the wp_options table.

Locate the siteurl and home rows under the option_name column.

Click Edit next to both, change the incorrect fields to your current website URL, and click Go to save. Step 4: Clear Web Browser and Server Caches

Your browser and website cache will still remember the broken, incorrect URL configurations. Can’t update siteurl and home for my WordPress site

Comments

Leave a Reply

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