How do I change my WordPress site URL? Print

  • 0

The easiest way is to log in to WordPress admin, go to Settings > General, and update both the WordPress Address (URL) and Site Address (URL) fields, then save.

  1. If you are locked out, edit wp-config.php via cPanel File Manager and add:
    define('WP_HOME','https://yourdomain.com');
    define('WP_SITEURL','https://yourdomain.com');
  2. Alternatively, change the siteurl and home rows in the wp_options table using phpMyAdmin.

After changing the URL, update any hardcoded links with a search-replace plugin, then clear your cache. If your site breaks, open a ticket and we can help restore it.


Was this answer helpful?

« Back