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
- Go to Settings → General
- Update "WordPress Address (URL)"
- Update "Site Address (URL)"
- 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)
- Open your WordPress database
- Go to wp_options table
- Find and edit: siteurl and home
- 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
- Backup first!
- Update DNS if changing domains
- Update SSL certificate
- Set up 301 redirects from old URL
- Update Google Search Console
Mixed Content Issues
If switching to HTTPS, ensure all resources use HTTPS too.