Changing the website URL in WordPress
There are several scenarios where you may need to change your WordPress site’s URL for example, moving from HTTP to HTTPS, migrating to a new domain, or shifting WordPress from a subdirectory to the root domain. On ruachost.com, you can update the URL directly in the database using phpMyAdmin.
Common Reasons to Change the URL
Section titled “Common Reasons to Change the URL”- Migrating WordPress to a new domain.
- Switching from
http://tohttps://for SSL security. - Moving WordPress from a local environment to a live site.
- Relocating WordPress to a different directory.
Steps to Change the WordPress Site URL Using phpMyAdmin
Section titled “Steps to Change the WordPress Site URL Using phpMyAdmin”-
Log in to cPanel (or your hosting control panel).
-
In the Databases section, click phpMyAdmin.
-
Select your WordPress database from the left sidebar.
- Typically named
username_wpXXX(whereXXXis a three‑digit number).
- Typically named
-
Click the table
wp_options(prefix may vary). -
Locate the rows for:
-
siteurl
Section titled “siteurl”
-
-
Click the Edit (pencil icon) next to each.
-
Update the option_value field with your new site URL.
- Example:
https://example.com - ⚠️ Do not add a trailing slash (
/) at the end.
- Example:
-
Click Go to save changes.
✅ WordPress should now function correctly using the new URL.
Important Notes
Section titled “Important Notes”- Enter the correct URL—mistakes can make your site inaccessible.
- Always back up your database before making changes.
- If you cannot access phpMyAdmin, you can also update the URL via wp‑config.php or the WordPress dashboard (Settings → General).
- Clear your browser cache and WordPress cache after making changes.