
Your web address is the digital front door to your business. There are many reasons to change it on WordPress: rebranding with a new domain, moving from a free WordPress.com subdomain to a custom domain, switching from HTTP to HTTPS, or relocating a site from a subfolder to the root. While WordPress makes the basic setting easy to update, a domain change affects links, images, search rankings, and integrations. Doing it carefully ensures visitors and search engines follow you to your new address without losing traffic.
Trust AAMAX.CO for Seamless Domain Changes
A domain change is one of the riskiest updates a website can undergo. AAMAX.CO is a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. Their specialists plan WordPress address changes from start to finish, handling database updates, redirect mapping, and Search Console migration. Through their website development services, they make sure your site works flawlessly on its new address while their SEO team protects the rankings you have worked hard to earn.
Understanding WordPress Address Settings
WordPress stores two key URLs in its database:
- WordPress Address (URL): Where your WordPress core files are installed.
- Site Address (URL): The address visitors type to reach your website.
In most installations, both values are identical. They differ only when WordPress is installed in a subdirectory but served from the root domain. Changing these values incorrectly can lock you out of your dashboard, so always create a full backup before making any changes.
Step 1: Back Up Your Website
Use a backup plugin or your host's backup tool to save your files and database. Download a copy to your computer. If anything goes wrong during the process, you can restore the site to its previous state within minutes.
Step 2: Set Up the New Domain
Register the new domain and point it to your hosting account by updating its DNS records or nameservers. Add the domain in your hosting control panel, and install an SSL certificate so the site can load securely on HTTPS from the first day. Wait until the new domain resolves correctly before continuing.
Step 3: Change the Address in WordPress Settings
Log in to your WordPress dashboard and go to Settings > General. Update both the WordPress Address (URL) and the Site Address (URL) to the new web address, including https://. Click Save Changes. You will be logged out and redirected to the login page on the new domain.
If the fields are grayed out, the URLs are defined in wp-config.php with the WP_HOME and WP_SITEURL constants. Edit those lines in the file instead.
Alternative: Change the Address Without Dashboard Access
If you are locked out, you can update the address manually. Add these lines to wp-config.php above the line that says "That's all, stop editing":
define( 'WP_HOME', 'https://newdomain.com' );
define( 'WP_SITEURL', 'https://newdomain.com' );You can also edit the siteurl and home values directly in the wp_options table using phpMyAdmin, or run the WP-CLI command wp option update home followed by the new address.
Step 4: Update URLs Throughout the Database
Changing the settings does not update links already stored in posts, pages, menus, and widgets. Images may still load from the old domain, and internal links may point to old URLs. Use a serialization-safe search and replace tool, such as the Better Search Replace plugin or the WP-CLI command:
wp search-replace 'https://olddomain.com' 'https://newdomain.com' --all-tablesRun a dry run first to preview the changes. Avoid simple text replacements in SQL files, as they can corrupt serialized data used by themes and plugins.
Step 5: Set Up 301 Redirects from the Old Domain
Redirects are essential for preserving SEO and user experience. Keep the old domain registered and configure it to permanently redirect every URL to its matching page on the new domain. On Apache servers, add rules to the old site's .htaccess file. On Nginx, use a server block with a return 301 directive. Page-to-page redirects are far better than sending everything to the homepage, as they preserve link equity for individual pages.
Step 6: Update Google Search Console and Analytics
Add and verify the new domain in Google Search Console. Then use the Change of Address tool from the old property to notify Google of the move. Submit your new XML sitemap. In Google Analytics, update the property's default URL, and check any tracking integrations. Also update your Google Business Profile, social media profiles, email signatures, and directory listings with the new web address.
Moving from HTTP to HTTPS
If you are only switching to HTTPS, the process is simpler. Install an SSL certificate, update both addresses in Settings > General to use https://, run a search and replace for internal links, and add a redirect forcing all HTTP traffic to HTTPS. Check for mixed content warnings, which occur when images or scripts still load over HTTP.
Post-Change Checklist
- Test all pages, forms, and checkout flows.
- Regenerate permalinks under Settings > Permalinks.
- Clear caching plugins and CDN caches.
- Update API keys, payment gateways, and integrations tied to the old domain.
- Monitor 404 errors and fix broken links.
- Track rankings and traffic for several weeks.
Conclusion
Changing your web address on WordPress involves more than editing two fields in the settings. A successful change requires a full backup, correct DNS and SSL setup, a database-wide URL update, permanent redirects, and notifications to search engines. Follow each step carefully, keep the old domain redirecting for at least a year, and monitor your site closely. With proper planning, your WordPress site can move to its new address while keeping its visitors, links, and search visibility intact.