Changing your website’s domain name involves more than registering a new address. You also need to move your website, update its internal URLs, redirect old links, and let Google know about the change.
If you skip a step, visitors may encounter broken pages, business emails may stop working, and your website could experience temporary changes in search traffic.
The good news is that you can avoid most of these problems by following the right order.
You don’t have to build your website again or lose the content you have already published. You simply need to move it to the new domain and make sure visitors can still find their way around.
Let’s look at the steps to change website domain name in ten steps.
Steps to Change Your Website’s Domain Name
1) Back Up Your Website and Take Stock
Before changing anything, create a full backup of your website. This gives you a copy to restore if something goes wrong during the migration.
Your backup should include two main things:
- Website files: These include your themes, plugins, images, documents, and other uploaded media.
- Database: This stores your website’s pages, posts, comments, customer orders, and settings.
If you use cPanel, you can download a backup through its backup tools. WordPress users can also use plugins such as UpdraftPlus or Duplicator to save their website files and database.

Whichever method you choose, download a copy to your computer rather than keeping it only on the hosting server. This way, you still have access to your backup if something happens to your hosting account.
There are a few other things to prepare before the move:
- List your important pages: Record your homepage, popular products or services, and blog posts that attract regular visitors. You will use this list to test the new website.
- Save your DNS records: Take note of your MX, SPF, DKIM, and DMARC records. These are important for keeping your business email working after the domain change.
- Check Google Search Console: Verify the old domain’s different versions, including www and non-www variations and any relevant subdomains. You will need access to these properties when notifying Google about the move.
One more thing, avoid redesigning your website during the domain migration. Keep the existing layout and URL structure where possible. If traffic or rankings change after the move, this makes it easier to identify the cause.
2) Register Your New Domain
You cannot rename an existing domain. Instead, you register a new domain and move your website to that address.
Start by choosing a name that reflects your business and is easy for customers to remember. The domain extension should also suit the audience you want to reach.
Here are some options for businesses operating in Uganda:
- .co.ug: Suitable for Ugandan companies and businesses.
- .ug: A shorter extension that gives your website a local identity.
- .org.ug: Commonly used by NGOs and community organizations.
- .com: A popular choice for businesses targeting customers in Uganda and other countries.
Once you have settled on a name, you can register it through our Truehost Domains page.

Follow these steps:
- Visit the Truehost Domains page and enter your preferred domain name in the search box.
- Check the available extensions and select the one you want.
- Add the domain to your cart and complete the registration.
- Choose an available payment method, such as mobile money, bank transfer, or card, to complete your purchase.
Keep your old domain registered after buying the new one. You will need it to redirect visitors from the old website to the new address.
Also, check its renewal settings. If the old domain expires, its redirects will stop working, and visitors using your previous links may no longer reach your website.
3) Point the New Domain to Your Hosting and Copy Your Website
After registering your new domain, connect it to the hosting account where your website will run.
You can do this in two ways:
- Nameservers: Replace the domain’s existing nameservers with those provided by your hosting company. This directs the domain’s DNS management to your hosting provider.
- A record: Point the domain to your hosting server’s IP address by adding or updating its A record.
DNS changes take time to propagate across different networks. This can take a few hours or, in some cases, up to 24–48 hours.
Next, add the new domain to your cPanel hosting account and copy your website into its assigned directory.

You can copy your website using either of these methods:
1. Use a migration plugin
If your website runs on WordPress, a plugin such as Duplicator can package your website files and database into a migration package. You can then transfer the package to the new domain’s directory and follow the installation instructions to restore your website.
2. Migrate the website manually
If you prefer handling the process yourself, follow these steps:
- Create a new database and database user through cPanel’s MySQL Database Wizard.
- Import your old database backup using phpMyAdmin.
- Upload your website files into the new domain’s directory using File Manager or FTP.
- Open the
wp-config.phpfile and update the database name, username, and password to match the new database.
Keep the old website available while preparing the new one. However, complete the remaining configuration and redirect steps promptly to avoid leaving two identical websites accessible for an extended period.
4) Update Your Website URLs
Copying your website files to the new domain does not automatically change every old URL stored in your website.
Your database may still contain the previous domain in image links, menus, internal links, page settings, and other website content. You need to replace these references so visitors are directed to the new address.

For WordPress websites, follow these steps:
- Log in to your WordPress dashboard.
- Go to Settings, then General.
- Update the WordPress Address (URL) and Site Address (URL) with your new domain, including HTTPS if SSL is already active.
- Use a search-and-replace tool such as Better Search Replace or WP-CLI to update the old domain throughout the database.
- Run a preview before applying the changes to check the records that will be affected.
- Check your theme, page builder, contact forms, canonical URLs, and XML sitemap settings for any remaining references to the old domain.
Be careful when replacing URLs in the WordPress database. WordPress uses serialized data to store some settings, and a basic SQL replacement can damage these records if their character lengths are not updated correctly.
Use a tool that supports serialized data, and avoid changing the GUID column during the migration.
If you cannot access your WordPress dashboard because the website keeps redirecting you to the old domain, you can temporarily define the new WordPress and Site URLs in your wp-config.php file.
For websites built using other platforms, open the domain settings and add the new address as your primary domain. Check your menus, forms, and embedded content to confirm they use the new URL.
5) Install SSL on the New Domain
Your new domain needs an SSL certificate to support secure HTTPS connections.
Without one, visitors may see a security warning when opening your website. This can discourage customers from browsing your pages or submitting information through your forms.
You can install or activate an SSL certificate through your hosting control panel. If your hosting provider offers free SSL certificates, check if one is available for your new domain.

After installation:
- Open your homepage and several internal pages using HTTPS.
- Check that the browser displays the secure padlock.
- Look for mixed-content warnings caused by images, scripts, or other resources still loading through HTTP or the old domain.
If you find mixed content, some of your website resources may still reference the previous address or an insecure URL. Return to step 4 and check your database, theme, and page builder settings for any remaining old links.
6) Redirect Old Pages to Their Matching New URLs
Once your new website is working, set up permanent 301 redirects from the old domain to the new one.
A 301 redirect automatically sends visitors and search engines from an old URL to its new location. It also helps Google transfer the relevant ranking signals associated with your previous pages.
If you use cPanel, you can configure redirects through its Redirects tool.
Follow these steps:
- Log in to cPanel and open the Redirects tool.
- Select Permanent (301) as the redirect type.
- Choose your old domain from the domain list.
- Enter the new domain, including
https://. - Enable Wildcard Redirect to preserve existing page paths.
- Save the redirect.
For example, if your old website address was oldshop.co.ug, a visitor opening https://oldshop.co.ug/about should be redirected to https://newshop.co.ug/about.
Wildcard redirects work when the page paths remain the same on both domains.
Avoid sending every old URL to your new homepage. Someone who opens an old product link should be directed to that product’s new page, not the homepage. If a page no longer exists, redirect it to the closest relevant replacement where possible.
After setting up the redirects, test your important old URLs, including deep pages and www variations. Confirm that each one leads to the correct page on your new domain.
7) Move Your Email Accounts
If your business email uses your old domain, you will also need to set up new email addresses.
For example, if your current address is [email protected], you may want to replace it with [email protected].

Complete the following tasks:
- Create new email accounts: Set up the mailboxes you need, such as
info@,sales@, andsupport@. - Configure MX records: Add the new domain’s MX records to direct incoming emails to your mail server.
- Add email authentication records: Configure SPF, DKIM, and DMARC to help receiving mail servers verify that your messages are legitimate.
- Forward old email addresses: Where your email provider supports it, forward messages sent to the old addresses to their new equivalents.
- Test email delivery: Send and receive test messages to confirm that everything works.
Do not assume that creating a new mailbox automatically transfers your old emails. If you need to retain previous messages, migrate or export them separately.
Finally, notify your customers, suppliers, and business contacts about the new email addresses. Update your email signatures before switching to the new accounts completely.
8) Notify Google About the Domain Change
After moving your website, let Google know that your old domain has been replaced with a new one.
Google Search Console has a Change of Address tool specifically for this purpose. It helps Google process the move and associate your old website with the new domain.
Before submitting the request, check that:
- You have verified ownership of both the old and new domains in Google Search Console.
- Your 301 redirects are working correctly.
- Your new website is accessible through HTTPS.
- You have generated an updated XML sitemap containing the new URLs.
Once everything is ready:
- Open Google Search Console and select the property for your old domain.
- Find the Change of Address tool.
- Select your new domain and complete Google’s validation checks.
- Submit the change request.
- Repeat the process for other eligible old-domain properties or variants where required.
- Submit your updated XML sitemap under the new domain’s Search Console property.
Google recommends keeping your redirects in place for at least 180 days and monitoring the migration through Search Console.
Note: You do not need the Change of Address tool for a move to HTTPS, a switch between www and non-www within the same domain, or a hosting change that leaves all your URLs unchanged.
9) Update External Links and Services
Your website may now be working perfectly, but some customers could still find your old domain on other platforms. Go through your business accounts and marketing materials to update the address wherever it appears.

Pay particular attention to:
- Business profiles: Update your Google Business Profile, Facebook, Instagram, LinkedIn, and WhatsApp Business accounts.
- Business documents: Replace the old domain on your email signatures, business cards, invoices, and marketing materials.
- Advertising and analytics: Update your Google Ads destination URLs and check your analytics settings.
- Payment gateways: If you use Pesapal, update your IPN URL and any callback or return URLs that refer to the old domain. Check similar settings with your other payment providers.
- Software and plugin licenses: Some subscriptions and licenses are linked to your registered domain. Update them if your provider requires it.
You should also contact other websites that link to your business and ask them to replace the old address with the new one.
Your 301 redirects will continue sending visitors to the correct pages, but updating external links reduces your reliance on redirects and keeps your business information consistent.
10) Test and Monitor Your New Website
Before announcing your new domain, spend some time checking that everything works as expected.
Start with these tests:
- Open your website on different browsers and devices, including a mobile phone and a computer.
- Visit your homepage, important landing pages, product pages, and blog posts.
- Check that images load and your menus and internal links lead to the correct pages.
- Open old URLs to confirm that their redirects work.
- Submit a test inquiry through your contact form or place a test order if you run an online store.
- Send and receive emails using your new business address.
Once you are satisfied with the results, you can announce the new domain to your customers.
However, your work does not end at launch. Keep checking Google Search Console for crawling errors, indexing changes, and unusual traffic fluctuations.
Google needs time to recrawl your website and process the domain migration. Some temporary changes in search rankings are possible during this period, so continue monitoring your pages rather than assuming every fluctuation indicates a problem.
Important Things to Remember When Changing Your Domain
How long should you keep the old domain?
Keep your old domain registered and maintain its redirects for at least 180 days. Ideally, retain it for a year or longer, especially if other websites still link to it or customers continue using the old address.
If the domain expires, the redirects stop working. Someone else could also register it, leaving you with no control over where visitors to your previous website are sent.
Will 301 redirects affect your Google rankings?
Google confirms that permanent redirects, such as 301 redirects, do not cause PageRank loss. However, you may experience temporary ranking fluctuations while Google recrawls your website and processes the changes.
Using relevant page-to-page redirects, updating your sitemap, and submitting a Change of Address request can help Google process the move.
Common mistakes to avoid:
- Moving your website without creating a complete backup.
- Redirecting every old page to the new homepage.
- Forgetting to replace old URLs in the website database.
- Overlooking email DNS records when connecting the new domain.
- Redesigning the website during the domain migration.
- Forgetting to notify Google through Search Console.
- Allowing the old domain to expire before visitors and search engines have stopped using it.
Move Your Website to a New Domain with Truehost
Changing your website’s domain does not mean starting your online presence from scratch.
With a proper backup, correct DNS configuration, updated website URLs, and permanent redirects in place, you can move to a new address while keeping your existing website and helping visitors find you.
If you’re ready to rebrand or switch to a domain that better represents your business, visit the Truehost Domains page to search for your preferred name and check available extensions.
Our team is available to help if you need assistance getting your new domain connected to your hosting account.