
There are many reasons you might want to change your web address on WordPress. Perhaps you are rebranding your business, moving from a free subdomain to a custom domain, switching from HTTP to HTTPS, or migrating your site to a new host. While WordPress makes it possible to update your site address, doing it incorrectly can break your website, lock you out of the admin dashboard, or cause significant drops in search rankings. In this guide, we explain how to change your web address on WordPress safely, step by step, while protecting your traffic and SEO.
How AAMAX.CO Handles WordPress Domain Changes and Migrations
Domain changes and migrations are technical tasks where small mistakes can have major consequences. AAMAX.CO is a full service digital marketing company that offers web development, digital marketing, and SEO services worldwide. Their team manages WordPress migrations from start to finish, including backups, database updates, redirects, SSL configuration, and post-migration SEO checks. Through their website development services, they ensure domain changes happen smoothly, with minimal downtime and preserved search rankings.
Understand the Two WordPress Address Settings
WordPress uses two important address settings. The WordPress Address, also called the site URL, tells WordPress where its core files are located. The Site Address, also called the home URL, is the address visitors type to reach your website. In most cases, both settings use the same URL. Changing them tells WordPress to generate links using the new address, but it does not automatically move your files, update your domain's DNS, or redirect visitors from the old address.
Step 1: Back Up Your Entire Website
Before making any changes, create a complete backup of your website files and database. Use a reliable backup plugin or your hosting provider's backup tools, and store a copy in a safe location outside your server. If anything goes wrong during the process, a backup allows you to restore your site quickly. Never skip this step.
Step 2: Set Up Your New Domain
If you are moving to a new domain, register it and point it to your hosting account by updating its DNS settings. This usually involves changing nameservers or adding A records provided by your host. Add the new domain to your hosting control panel and install an SSL certificate so your site can load securely over HTTPS. DNS changes can take some time to propagate, so plan accordingly.
Step 3: Update the Address in WordPress Settings
Log in to your WordPress dashboard and navigate to Settings, then General. You will see the WordPress Address and Site Address fields. Replace the old URL with your new URL in both fields, making sure to include the correct protocol, such as https. Save your changes. You will likely be logged out and need to log in again using the new address. If your site is managed by a hosting platform that locks these fields, you may need to update them through the hosting dashboard or configuration file.
Alternative: Update the Address in wp-config.php
If you cannot access the dashboard, you can define the site URL and home URL directly in the wp-config.php file using constants. Access your files through your hosting file manager or FTP, open wp-config.php, and add lines defining WP_HOME and WP_SITEURL with your new address. This method overrides database settings and is helpful for recovering from incorrect URL changes that lock you out of the admin area.
Step 4: Update Internal Links in the Database
Changing the settings does not update links already stored in your posts, pages, images, and widgets. These still point to the old address. Use a reputable search-and-replace plugin or a command-line tool like WP-CLI to replace all instances of the old URL with the new one in your database. Choose a tool that safely handles serialized data, since improper replacements can break settings and widgets. Run a dry run first to preview changes.
Step 5: Set Up 301 Redirects
To preserve traffic and SEO, permanently redirect every page on your old domain to the corresponding page on your new domain using 301 redirects. This can be done through your server configuration, an .htaccess file on Apache servers, Nginx rules, or a redirect plugin. Redirects ensure that visitors using old links, bookmarks, or search results reach the right content, and they tell search engines to transfer ranking signals to the new address.
Step 6: Notify Search Engines
Add and verify your new domain in search engine webmaster tools. If you are changing domains, use the change of address tool where available to inform search engines about the move. Submit an updated XML sitemap for the new domain. Monitor indexing and crawl errors over the following weeks to catch any issues early.
Step 7: Test Everything Thoroughly
Browse your site extensively using the new address. Check pages, posts, images, menus, forms, and checkout processes. Look for mixed content warnings, which occur when some resources still load over HTTP. Test redirects from several old URLs to confirm they work correctly. Clear any caching plugins and content delivery network caches so visitors see the updated site.
Step 8: Update External References
Update your new address everywhere it appears outside your website, including social media profiles, email signatures, business listings, advertising campaigns, analytics settings, and marketing materials. Reach out to important websites that link to you and ask them to update their links. This strengthens your new domain's authority over time.
Conclusion
Changing your web address on WordPress involves backing up your site, setting up the new domain and SSL, updating WordPress address settings, replacing old URLs in the database, implementing 301 redirects, notifying search engines, testing thoroughly, and updating external references. Following these steps carefully protects your traffic and rankings. For a stress-free transition, AAMAX.CO can handle the entire process with professional precision.
