+321 123 4567
info@test.com
  • Home
  • My Services
    • Web Design
    • Web Development
    • Technical Writing
  • Portfolio
  • My Thoughts
  • Free Tools
    • Photo Editor
    • Avatar Generator
    • Email Migration Tool
    • QR Code Generator
    • RSS to HTML Converter
    • Rich Text Editor
    • IP Address Geolocation
    • Base64 Image Encoder
    • NATO Translator
    • All Tools
  • Contact
Home
Wordpress
How To Change Your WordPress Domain Name Without Losing Traffic

How To Change Your WordPress Domain Name Without Losing Traffic

Wale Adekile
June 15, 2017

If you think your first domain name was a mistake, there may come a time when you think the best way to rebrand your website is to change the domain name. Changing your domain name could go wrong if not done the right way. As a matter of fact, you could lose your traffic, link juice, and everything. This is why you need to be cautious when changing your domain name.


change domain name
Image credit: DRI.pt

To safely rebrand and  change your WordPress domain name without losing your existing traffic, there are 3 basic steps to follow:

  1. Creating an add-on domain with the new domain name.
  2. Changing the domain name from WP dashboard.
  3. Setting up a 301 redirect to retain traffic and link juice.

Creating an add-on domain

To change your WordPress domain name safely, you need to create an add-on domain. If you’re new to this, add-on domains let you create new sites right on the same cPanel account. If your hosting account doesn’t allow this and only lets you have just one website hosted, you need to contact your hosting provider to upgrade your hosting account to allow the creation of add-on domains.

Setting up an add-on domain for the purpose of changing your WordPress domain name can be a bit tricky. When setting up the add-on domain for the new domain name, you have to make sure it points to your existing WordPress installation folder.

change wordpress domain name

If your existing WordPress is located inside public_html, you need to leave it as shown in the image above. However, if it’s inside a subfolder, you need to enter the path like this: public_html/olddomain.


If you’re not sure where your existing WP installation is located, you need to head to your File Manager to figure it out. This part is very important.

To verify that you did it correctly, type the new domain name in your browser. If it displays your existing WordPress site, you should move on to the next step. If it doesn’t review this first step and do it correctly.

Changing your domain name from WordPress dashboard

This part is relatively easy. Go to your WordPress Dashboard > Settings > General. In the space provided for WordPress Address and Site Address, enter your new domain name.

change wordpress domain name safely

Save your changes. You should be redirected to the login page after this. Now you can log back in and move on to the last step.

Setting up a 301 redirect to retain traffic and link juice

This is the very last step. Go to the cPanel File Manager or log in to your WordPress directory through FTP. The easiest way to do this is by going to cPanel > Redirects (under Domains). Set up your redirect as shown and you should be good to go.

redirect wordpress domain to another


If you don’t have cPanel, open the .htaccess file in your WP installation folder (or create a new one if it doesn’t exist) and put this piece of code:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^olddomain.com [NC,OR] RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC] RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301,NC]

Just remember to change oldomain.com, www.oldomain.com, and newdomain.com in the code above to your old domain name and new domain name as appropriate.

Wrapping it up

Be sure to login to Google Webmaster Tools and notify Google of the change in address. First, you need to add the new website and get it verified. Next, go to the old site from within Webmaster Tools. You can do this by selecting your website from the drop-down list. Hit the gear button on the top-right and select Change of address.

change of address

On the next page, select the new domain name from the list and set up the change of address accordingly.

With these steps followed closely, you should successfully change your WordPress site domain name and redirect safely without losing your traffic or SEO.


Previous Post
Tecno DroiPad 7D: Unboxing & Quick Review
Next Post
Best Cheap Android Smartphones Between ₦10,000 to ₦20,000
Wale Adekile
Husband to the world's most beautiful woman and father to two awesome kids. A nerd, obviously; also, a technical business analyst, a web designer who preaches the gospel of WordPress, and a writer. You can check out my published books on Amazon.
Wordpress SEO
Wordpress

10 Best Free SEO WordPress Plugins

12 years ago
create your own wordpress theme with photoshop
Wordpress

How to Create your Own Custom WordPress Theme Easily

13 years ago

Recent Articles

wahl rapic clip hair clipper
Wahl Rapid Clip Hair Clipper Review: DIY Made Easy
BenQ LaptopBar Review: Luxury or Necessity?
yunmai easepro unboxed
Yunmai EasePro Massage Gun Review
g20
Teendow G20 Robot Vacuum and Mop Review
bathroom
Dear Men, Spraying All Over the Toilet Seat is Disgusting and Irresponsible
winx mediatrans
How to Transfer Photos from iPhone to Computer Without iTunes
google workspace
How to Migrate Emails From Google Workspace/G Suite to cPanel
synology diskstation ds920+
Synology DiskStation DS920+ Review
playstation 4
Why I haven’t Upgraded to the PlayStation 5 Yet
pain
Started Watching Anime as an Adult? You’re Not Alone

All contents on this blog are copyright protected and cannot be reproduced on other websites without permission.

Copyright © 2022 – NerdieDad | Home | Contact | About | Privacy Policy