
There are many reasons you might need to change your web address in WordPress. You may be rebranding, moving from a temporary development domain to a live one, switching from HTTP to HTTPS, or relocating your site from a subdirectory to the root domain. While WordPress makes it possible to update your site address, doing it incorrectly can break links, lock you out of your dashboard, or cause a sudden drop in search rankings. This guide explains how to change your web address in WordPress safely, step by step, while protecting your traffic and SEO.
Get Expert Help From AAMAX.CO
Changing a website's address involves technical steps that can affect your entire online presence. AAMAX.CO is a full service digital marketing company that offers web development, digital marketing, and SEO services worldwide. Their website development specialists manage WordPress domain changes, migrations, redirects, and database updates with care, ensuring no broken links or lost rankings. Because they also provide SEO services, they monitor search performance before and after the change and help businesses transition to a new address without disruption.
Understand the Two WordPress Address Settings
WordPress uses two key settings to define your website's location. The WordPress Address, also called the site URL, is where your WordPress core files live. The Site Address, also called the home URL, is the address visitors type to reach your website. In most installations, these two values are identical. If WordPress is installed in a subdirectory but you want your site to appear at the root domain, they may differ.
Step 1: Back Up Your 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. Store the backup somewhere safe outside your server. If anything goes wrong, a backup allows you to restore your site quickly.
Step 2: Set Up the New Domain
If you are moving to a new domain, register it and point it to your hosting server by updating DNS records. Add the domain to your hosting account and install an SSL certificate so the new address loads securely over HTTPS. Wait for DNS propagation, which can take anywhere from a few minutes to 48 hours.
Step 3: Update Addresses in the Dashboard
The simplest method is through the WordPress dashboard. Go to Settings, then General. Update both the WordPress Address and Site Address fields with your new URL, including https:// if applicable. Click Save Changes. WordPress will log you out, and you will need to log in again using the new address.
Alternative Method: Edit wp-config.php
If you cannot access your dashboard, you can define the addresses in your wp-config.php file. Using your hosting file manager or FTP, open wp-config.php and add lines defining WP_HOME and WP_SITEURL with your new address. This overrides the database values. Keep in mind that when these constants are set, the fields in the dashboard become locked until you remove them.
Step 4: Update Internal Links in the Database
Changing the site address does not automatically update links stored inside your content, such as image URLs and internal links in posts and pages. Use a trusted search and replace plugin to replace the old URL with the new one throughout your database. These tools handle serialized data correctly, which is important because a simple text replacement can corrupt settings stored by themes and plugins. Always run a dry run first to preview changes.
Step 5: Set Up 301 Redirects
Redirects are essential for preserving SEO and user experience. A 301 redirect tells browsers and search engines that a page has permanently moved. Configure redirects from every old URL to its corresponding new URL, either through your server configuration, your hosting control panel, or a redirect plugin. Page-to-page redirects are far better than redirecting everything to the homepage, because they preserve the relevance and authority of individual pages.
Step 6: Update Google Search Console and Analytics
Add and verify your new domain in Google Search Console. If you are moving to an entirely new domain, use the Change of Address tool in the old property to notify Google of the move. Submit your updated sitemap for the new domain. Update your analytics property settings, advertising accounts, and any tracking codes that reference the old address.
Step 7: Check for Problems
After making the change, thoroughly test your website. Look for:
- Broken images or links still pointing to the old domain.
- Mixed content warnings caused by resources loaded over HTTP.
- Login or redirect loops.
- Missing styles caused by cached files.
- Forms, checkout pages, and integrations that rely on specific URLs.
Clear your caching plugin, server cache, and content delivery network cache to ensure visitors see the updated site.
Step 8: Update External References
Update your website address on social media profiles, business directories, email signatures, marketing materials, and third-party integrations. Reach out to important websites that link to you and ask them to update their links. While redirects will preserve most link value, direct links to the new domain are always best.
Monitor SEO After the Change
It is normal to see small ranking fluctuations after a domain change. Monitor Search Console for crawl errors, indexing status, and traffic changes. With proper redirects and updated sitemaps, most sites recover and stabilize within a few weeks.
Final Thoughts
Learning how to change your web address in WordPress is manageable when you follow a careful process: back up your site, set up the new domain, update the WordPress addresses, replace old URLs in the database, implement 301 redirects, notify Google, and test everything thoroughly. Taking these steps protects your visitors, preserves your search rankings, and ensures a smooth transition to your new web address.
