• Wednesday, February 25, 2026

Knowledge Base

How to Change Your WordPress Site URL

Moving or Renaming Your WordPress Site

Update your site address when changing domains or moving to/from www.

Method 1: WordPress Settings

  1. Go to SettingsGeneral
  2. Update "WordPress Address (URL)"
  3. Update "Site Address (URL)"
  4. Save Changes

Method 2: wp-config.php

Add these lines:

define('WP_HOME', 'https://newdomain.com');
define('WP_SITEURL', 'https://newdomain.com');

Method 3: Database (phpMyAdmin)

  1. Open your WordPress database
  2. Go to wp_options table
  3. Find and edit: siteurl and home
  4. Update to new URL

Search and Replace

After changing URL, update internal links:

  • Use "Better Search Replace" plugin
  • Search: old URL
  • Replace: new URL
  • Run on all tables

Important Steps

  1. Backup first!
  2. Update DNS if changing domains
  3. Update SSL certificate
  4. Set up 301 redirects from old URL
  5. Update Google Search Console

Mixed Content Issues

If switching to HTTPS, ensure all resources use HTTPS too.