{"id":7493,"date":"2022-01-21T09:27:02","date_gmt":"2022-01-21T09:27:02","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=7493"},"modified":"2026-03-10T10:24:22","modified_gmt":"2026-03-10T10:24:22","slug":"change-wordpress-domain-name","status":"publish","type":"post","link":"\/in\/tutorials\/change-wordpress-domain-name","title":{"rendered":"How to change domain name on WordPress: using cPanel and hPanel"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>As businesses start offering new products or services, or entering new markets, changing the business strategy might become inevitable. This includes aligning your domain name with your brand value.<\/p><p>In addition to providing a readable address, a domain name is the unique address for a website and it also represents your brand. With that in mind, the domain should reflect your brand&rsquo;s goals and missions.<\/p><p>Fortunately, changing a domain name is a straightforward process. This article will show you how to do so for a WordPress site.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-things-to-do-before-you-change-your-domain-name\">Things to Do Before You Change Your Domain Name<\/h2><p>For the most part, the steps to change the WordPress domain are simple, but some tasks will require you to tweak your site&rsquo;s <a href=\"\/in\/tutorials\/what-is-php\/\">PHP<\/a> code. Thus, before we start, we recommend completing these three preliminary tasks.<\/p><h3 class=\"wp-block-heading\">1. Backup Your Current Site <\/h3><p><a href=\"\/in\/tutorials\/backup-wordpress\">Back up your website<\/a> before making any big changes. Doing so will allow you to get your site back whenever an error occurs. Otherwise, you risk losing all your data and having to start from scratch.<\/p><p>A WordPress website consists of two main components &ndash; website files and databases. Hence, before transferring your site content onto the new domain, execute a full backup of your entire site.<\/p><p>Convenient one-click restore and backup systems that let you back up your WordPress site via the hosting dashboard are available for Hostinger users with these services:<\/p><ul class=\"wp-block-list\">\n<li><a href=\"\/in\/web-hosting\">Standard web hosting<\/a><\/li>\n\n\n\n<li><a href=\"\/in\/wordpress-hosting\">WordPress hosting<\/a><\/li>\n\n\n\n<li><a href=\"\/in\/cloud-hosting\">Cloud server hosting services<\/a><\/li>\n<\/ul><p>Alternatively, several WordPress plugins enable you to perform a backup with just a few clicks. Some of the most popular choices are <a href=\"https:\/\/wordpress.org\/plugins\/vaultpress\/\" target=\"_blank\" rel=\"noopener\">VaultPress<\/a>, <a href=\"https:\/\/wordpress.org\/plugins\/updraftplus\/\" target=\"_blank\" rel=\"noopener\">UpdraftPlus<\/a>, and <a href=\"https:\/\/wordpress.org\/plugins\/backwpup\/\" target=\"_blank\" rel=\"noopener\">BackWPup<\/a>.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a href=\"\/in\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner-1024x300.png\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner-1024x300.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner-768x225.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner-1536x450.png 1536w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\">2. Access to a Hosting Dashboard or an FTP Client<\/h3><p>If you want to change the WordPress domain, you&rsquo;ll need access to your hosting account dashboard &ndash; this is where you will add your new domain address. Hostinger users can log into the <a href=\"\/support\/1583483-comprehensive-guide-to-hpanel-at-hostinger\/\">hPanel<\/a> dashboard and head to the <strong>Domain <\/strong>section for domain management.<\/p><p>Alternatively, use an <a href=\"\/in\/tutorials\/what-is-ftp\">FTP client<\/a> to upload your site backup. To do so, you will need to <a href=\"\/in\/tutorials\/ftp\/filezilla-ftp-configuration\">configure FileZilla Client<\/a> beforehand. Once everything is set, you can upload and manage larger files remotely from a local computer.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-research-for-a-new-domain-name\">3. Research for a New Domain Name<\/h3><p>Make sure to do proper research before buying a new domain name, from finding a credible hosting registrar to deciding a suitable extension for your site address. Many people are using <a href=\"\/in\/tld\/com-domain\"><strong>.com<\/strong> domain names<\/a> for their website names. A good rule of thumb is to make a list of potential domain names and check their availability via a <a href=\"\/in\/domain-name-search\">domain name finder<\/a>.<\/p><p>If you&rsquo;re looking to start your online presence cost-effectively, you might want to explore options for a <a href=\"\/in\/free-domain\">free domain name<\/a>. This can be a great way to get started without upfront costs.<\/p><p>Now, if you have all the prerequisites ready, it&rsquo;s time to take action. The following section will walk you through the easy methods of changing your WordPress site address.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-change-domain-name-in-wordpress\">How to Change Domain Name in WordPress<\/h2><div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-description\">Now, let&rsquo;s move on to the process of changing your WordPress site&rsquo;s domain name. We have divided the process into six steps, and here&rsquo;s a quick overview:<\/p> <ol class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1740557065036\"><strong class=\"schema-how-to-step-name\"><a href=\"#h-1-purchase-a-new-domain-name\">Purchase a new domain name<\/a><\/strong> <p class=\"schema-how-to-step-text\">The first step is to secure the new domain name for your new WordPress website.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1740557349575\"><strong class=\"schema-how-to-step-name\"><a href=\"#h-2-add-the-new-domain-name-and-upload-the-backup\">Add the new domain name to the new website<\/a><\/strong> <p class=\"schema-how-to-step-text\">Set up a new WordPress website with the new domain name.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1740557392710\"><strong class=\"schema-how-to-step-name\"><a href=\"#h-3-copy-all-wordpress-core-files-from-your-old-domain\">Copy your WordPress core files<\/a><\/strong> <p class=\"schema-how-to-step-text\">Copy your website files, including the WordPress core files, from the backup you made earlier from the old domain&rsquo;s site.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1740557416441\"><strong class=\"schema-how-to-step-name\"><a href=\"#h-4-change-the-url-and-site-address\">Change the site&rsquo;s URL and address<\/a><\/strong> <p class=\"schema-how-to-step-text\">Set the site&rsquo;s URL to the new domain name. You can do this either from the WordPress admin dashboard, the wp-config file, or the database.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1740557455210\"><strong class=\"schema-how-to-step-name\"><a href=\"#h-5-reset-url-structure\">Reset URL structure<\/a><\/strong> <p class=\"schema-how-to-step-text\">Ensure that the new website follows the same URL structure as the old one to prevent broken permalinks and 404 errors.<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1740557470774\"><strong class=\"schema-how-to-step-name\"><a href=\"#h-6-redirect-an-old-wordpress-domain-permanently\">Create a permanent redirect from the old domain to the new one<\/a><\/strong> <p class=\"schema-how-to-step-text\">Prevent losing traffic and backlinks by creating a 301 permanent redirection from the old domain to the new domain.<\/p> <\/li><\/ol><\/div><p>Let&rsquo;s dive deeper into each step.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-purchase-a-new-domain-name\">1. Purchase a New Domain Name<\/h3><p>First, head to Hostinger&rsquo;s domain checker and type in your preferred domain. You&rsquo;ll find out if this option is available, and get some suggestions on alternative domain names as well as their costs.<\/p><p>    <div class=\"mb-50 mt-50 domain-checker domain-checker__bg\">\n        <h3 class=\"m-0 text-center text-white pb-10\">Domain Name Checker<\/h3>\n        <p class=\"pb-40 text-center text-white\">Instantly check domain name availability.<\/p>\n        <form id=\"domain-checker-form\" class=\"d-flex w-100 position-relative flex-column flex-sm-row align-items-center\" action=\"\/domain-name-search\">\n            <input\n                    class=\"domain-checker__input label text-light-black\"\n                    name=\"domain\" type=\"text\"\n                    placeholder=\"Enter your desired domain name\"\n                    value=\"\"\n            \/>\n            <input id=\"domain-submit\"\n                   type=\"submit\"\n                   value=\"Check\"\n                   class=\"domain-checker__button hb--danger new-h-button-primary button text-white float-right\"\/>\n        <\/form>\n    <\/div>\n\n<\/p><p>If your desired domain name and its alternatives are already taken, try <a href=\"\/in\/tutorials\/who-owns-domain-name\">contacting the domain owner<\/a> and negotiate a fair price for that particular domain. Use the <a href=\"\/in\/whois\">domain lookup<\/a> tool to find who owns the domain along with the owner&rsquo;s information, such as phone number and email address.<\/p><p>However, if your desired domain address is available, simply add the domain to the cart, and proceed to check out.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/hostinger-domains.png\"><img decoding=\"async\" width=\"1024\" height=\"476\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/hostinger-domains-1024x476.png\" alt=\"Hostinger showing that your domain name is available and offering more alternatives. \" class=\"wp-image-43565\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hostinger-domains.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hostinger-domains-300x140.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hostinger-domains-150x70.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hostinger-domains-768x357.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hostinger-domains-1536x714.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>During the checkout process, you will also need to specify the domain registration period. There are several registration periods, ranging from one to ten years. However, most domain registrars will require you to pay for at least one year.<\/p><p>At Hostinger, we offer up to a three-year registration period. If you purchase Hostinger&rsquo;s annual <strong>Premium<\/strong> or <strong>Business<\/strong> hosting plans, you will <a href=\"\/in\/free-domain\">get a free domain<\/a> for the first year.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/hcart-domain.png\"><img decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/hcart-domain-1024x1024.png\" alt=\"The purchase page for a domain at Hostinger\" class=\"wp-image-82432\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hcart-domain-1024x1024.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hcart-domain-300x300.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hcart-domain-150x150.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hcart-domain-768x768.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/hcart-domain.png 1220w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Proceed to click the <strong>Submit Secure Payment <\/strong>button to finalize your order.<\/p><p>Read our &ldquo;<a href=\"\/in\/tutorials\/how-to-buy-a-domain-name\">How to Buy a Domain Name<\/a>&rdquo; guide for more detailed instructions.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-add-the-new-domain-name-and-upload-the-backup\">2. Add the New Domain Name and Upload the Backup<\/h3><p>The next step is adding the new domain name to your existing hosting plan. Below, we will go over the steps for both <strong>hPanel<\/strong> and <strong>cPanel<\/strong>.<\/p><p><strong>Using hPanel<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Navigate to <strong>Website &rarr; Add Website<\/strong> and select <strong>WordPress<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-websites-add-website-wordpress-2.png\"><img decoding=\"async\" width=\"1024\" height=\"175\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-websites-add-website-wordpress-2-1024x175.png\" alt=\"Options when creating a new website on hPanel\" class=\"wp-image-110201\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-websites-add-website-wordpress-2-1024x175.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-websites-add-website-wordpress-2-300x51.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-websites-add-website-wordpress-2-150x26.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-websites-add-website-wordpress-2-768x131.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-websites-add-website-wordpress-2-1536x263.png 1536w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-websites-add-website-wordpress-2.png 1778w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>A pop-up will appear. Select your preferred hosting plan from the drop-down menu.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-select-a-hosting-plan-1.png\"><img decoding=\"async\" width=\"932\" height=\"392\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-select-a-hosting-plan-1.png\" alt=\"Options to select a hosting plan when adding a new website on hPanel.\" class=\"wp-image-110202\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-select-a-hosting-plan-1.png 932w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-select-a-hosting-plan-1-300x126.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-select-a-hosting-plan-1-150x63.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-select-a-hosting-plan-1-768x323.png 768w\" sizes=\"(max-width: 932px) 100vw, 932px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Create login details for your new WordPress account.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-create-login-details-for-wordpress-account-1.png\"><img decoding=\"async\" width=\"1024\" height=\"360\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-create-login-details-for-wordpress-account-1-1024x360.png\" alt=\"The step to create login details for the new WordPress website on hPanel\" class=\"wp-image-110203\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-create-login-details-for-wordpress-account-1-1024x360.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-create-login-details-for-wordpress-account-1-300x105.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-create-login-details-for-wordpress-account-1-150x53.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-create-login-details-for-wordpress-account-1-768x270.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-create-login-details-for-wordpress-account-1-1536x539.png 1536w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-create-login-details-for-wordpress-account-1.png 1788w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Choose the type of website you want to build from the drop-down menu.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-choose-website-type-1.png\"><img decoding=\"async\" width=\"1024\" height=\"362\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-choose-website-type-1-1024x362.png\" alt=\"The step to choose a website type on hPanel\" class=\"wp-image-110204\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-website-type-1-1024x362.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-website-type-1-300x106.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-website-type-1-150x53.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-website-type-1-768x272.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-website-type-1-1536x543.png 1536w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-website-type-1.png 1801w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>Follow the rest of the new website onboarding process, starting with choosing whether you want to use pre-built templates or standard themes. You can also <strong>Skip<\/strong> some of these steps and set them up later.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-prebuilt-standard-themes-1.png\"><img decoding=\"async\" width=\"1024\" height=\"360\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-prebuilt-standard-themes-1-1024x360.png\" alt=\"Options to  start building a website with pre-built templates or standard themes on hPanel\" class=\"wp-image-110205\" style=\"width:840px;height:auto\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-prebuilt-standard-themes-1-1024x360.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-prebuilt-standard-themes-1-300x105.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-prebuilt-standard-themes-1-150x53.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-prebuilt-standard-themes-1-768x270.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-prebuilt-standard-themes-1-1536x540.png 1536w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-prebuilt-standard-themes-1.png 1801w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Once you get to the <strong>Choose a Domain <\/strong>step, pick the domain you previously purchased.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-choose-a-domain.png\"><img decoding=\"async\" width=\"1024\" height=\"240\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-choose-a-domain-1024x240.png\" alt=\"The step to choose a domain name in hPanel\" class=\"wp-image-110206\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-a-domain-1024x240.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-a-domain-300x70.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-a-domain-150x35.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-a-domain-768x180.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-a-domain-1536x361.png 1536w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2024\/05\/hpanel-choose-a-domain.png 1789w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Wait until the website setup process is finished.<\/p><p><strong>Using cPanel<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Log into your <a href=\"\/in\/tutorials\/what-is-cpanel\">cPanel<\/a> account, navigate to <strong>Domains<\/strong> &rarr; <strong>Addon Domains<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/cpanel-domains-addon-domains.png\"><img decoding=\"async\" width=\"1024\" height=\"233\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/cpanel-domains-addon-domains-1024x233.png\" alt=\"Clicking on the Addon Domains option under the Domains section in cPanel.\" class=\"wp-image-43572\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/cpanel-domains-addon-domains.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/cpanel-domains-addon-domains-300x68.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/cpanel-domains-addon-domains-150x34.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/cpanel-domains-addon-domains-768x174.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Under the <strong>Create an Addon Domain<\/strong> section, fill out the new domain address. The subdomain and the document root will get filled automatically.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/cpanel-create-an-addon-domain.png\"><img decoding=\"async\" width=\"893\" height=\"421\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/cpanel-create-an-addon-domain.png\" alt=\"The Create an Addon Domain window in cPanel.\" class=\"wp-image-43573\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/cpanel-create-an-addon-domain.png 893w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/cpanel-create-an-addon-domain-300x141.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/cpanel-create-an-addon-domain-150x71.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/cpanel-create-an-addon-domain-768x362.png 768w\" sizes=\"(max-width: 893px) 100vw, 893px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>If you want to create an FTP account for the new addon domain, simply check the <strong>Create an FTP account associated with this Addon Domain<\/strong> box. Doing so will bring up additional settings, such as username and password.<\/li>\n\n\n\n<li>Once you have filled in all settings, click <strong>Add Domain<\/strong>.<\/li>\n<\/ol><p>Keep in mind that addon domains will not work unless you add the correct DNS records. One of the most efficient ways to look for DNS records is to use the nslookup commands.<\/p><p>Alternatively, you can use an <a href=\"https:\/\/dnschecker.org\/all-dns-records-of-domain.php\" target=\"_blank\" rel=\"noopener\">online DNS checker<\/a> to find different types of DNS records.<\/p><h3 class=\"wp-block-heading\" id=\"h-3-copy-all-wordpress-core-files-from-your-old-domain\">3. Copy All WordPress Core Files From Your Old Domain<\/h3><p>Moving all website content from your old site to the new domain is easy with the help of backup. Especially, when you don&rsquo;t switch to a new hosting provider.<\/p><p>Download your backup file from the hosting dashboard or directly copy your old domain folder to the new one.<\/p><p>Below, we will walk you through the steps of <a href=\"https:\/\/support.hostinger.com\/en\/articles\/3592280-how-to-move-website-s-content-to-another-domain-name\" target=\"_blank\" rel=\"noopener\">moving your website content to a new domain<\/a> via Hostinger&rsquo;s File Manager. Before applying the following steps, ensure that your add on domain is successfully added to your account.<\/p><ol class=\"wp-block-list\">\n<li>Access your hPanel dashboard, navigate to <strong>Files &rarr; File Manager,<\/strong> and select the <strong>Access all files of Your Hosting<\/strong> button.<\/li>\n\n\n\n<li>Check whether you have both domain folders in the File Manager.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/filemanager-domains.png\"><img decoding=\"async\" width=\"1024\" height=\"263\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/filemanager-domains-1024x263.png\" alt=\"Domain folders in the File Manager.\" class=\"wp-image-82434\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/filemanager-domains.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/filemanager-domains-300x77.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/filemanager-domains-150x39.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/filemanager-domains-768x198.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Click on the domain folder you want to move your content from and open the <strong>public_html<\/strong> directory.<\/li>\n\n\n\n<li>Select all files &ndash; click on the <strong>Copy<\/strong> button if you want to leave a copy of the files on the old domain name. Otherwise, click <strong>Move<\/strong> to completely transfer all content to your new WordPress address.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-publichtml_copymove-highlighted.png\"><img decoding=\"async\" width=\"1024\" height=\"348\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/filemanager-publichtml_copymove-highlighted-1024x348.png\" alt=\"The public_html folder on Hostingers' file manager. The Copy and move buttons are highlighted\" class=\"wp-image-82435\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/03\/filemanager-publichtml_copymove-highlighted.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/03\/filemanager-publichtml_copymove-highlighted-300x102.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/03\/filemanager-publichtml_copymove-highlighted-150x51.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/03\/filemanager-publichtml_copymove-highlighted-768x261.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>Clicking on either option will trigger the following pop-up window.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/filamanager-move-button-open.png\"><img decoding=\"async\" width=\"764\" height=\"866\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/filamanager-move-button-open.png\" alt=\"The Move function pop-up window on Hostinger file manager\" class=\"wp-image-82436\" style=\"width:573px;height:650px\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/filamanager-move-button-open.png 764w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/filamanager-move-button-open-265x300.png 265w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/filamanager-move-button-open-132x150.png 132w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/><\/a><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Navigate to the path to your new domain folder. The new domain path should look like this: domains\/newdomain.tld\/public_html<\/li>\n<\/ol><p>Alternatively, you can download your backup and upload it via the <a href=\"https:\/\/support.hostinger.com\/en\/articles\/4548506-how-to-upload-backup-with-file-manager-in-cpanel\" target=\"_blank\" rel=\"noopener\">cPanel&rsquo;s File Manager<\/a> or <a href=\"https:\/\/support.hostinger.com\/en\/articles\/1869164-how-to-upload-backup-with-ftp\" target=\"_blank\" rel=\"noopener\">an FTP client<\/a>.<\/p><p><div><p class=\"important\"><strong>Important!<\/strong> If you are moving the website to another hosting, you will need to import the database and configure the database information in the <strong>wp-config.php<\/strong> file. Read our detailed instructions on <strong><a href=\"\/in\/tutorials\/how-to-move-my-wordpress-to-a-new-domain\">how to move a WordPress site to a new server<\/a><\/strong>.<\/p><\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-4-change-the-url-and-site-address\">4. Change the URL and Site Address<\/h3><p>The next step in changing your WordPress address is to update the existing URL and site address. This helps provide a smooth user experience for your visitors and makes it easier for web crawlers to find and index content.<\/p><p>There are several options to do so, from accessing your WordPress admin dashboard to updating your WordPress database via phpMyAdmin. Let&rsquo;s go over the methods one by one.<\/p><p><strong>1. Use the WordPress Admin Dashboard<\/strong><\/p><p>The first and most common method is to add your new address to the <strong>WordPress General Settings<\/strong>. This is the easiest method if you can access the WordPress admin dashboard.<\/p><p>To do that, go to <strong>Settings &rarr; General<\/strong>. Then, replace your current <strong>WordPress Address (URL)<\/strong> and <strong>Site Address (URL)<\/strong> with your new URL.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/wordpress-general-settings.png\"><img decoding=\"async\" width=\"970\" height=\"340\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/wordpress-general-settings.png\" alt=\"The General Settings window.\" class=\"wp-image-43582\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wordpress-general-settings.png 970w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wordpress-general-settings-300x105.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wordpress-general-settings-150x53.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wordpress-general-settings-768x269.png 768w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/a><\/figure><\/div><p>Ensure that both addresses match unless you&rsquo;re setting a designated home page for your WordPress site. Once done, click <strong>Save Changes<\/strong>.<\/p><p>However, those fields might be grayed out due to set fixed values in your <strong>wp-config <\/strong>file. In this case, follow the steps in the section below.<\/p><p><strong>2. Using the wp-config.php File<\/strong><\/p><p>If you are moving your website and can&rsquo;t access your WordPress dashboard, you can change the settings via the <strong>wp-config.php<\/strong> file.<\/p><p>This file is usually located under the root directory of your WordPress site &ndash; simply access it through the hPanel&rsquo;s file manager. Alternatively, open it via FTP, SSH, or <a href=\"\/in\/tutorials\/wp-cli\">WP-CLI<\/a>.<\/p><p>In this example, we will show you how to edit the <strong>wp-config.php<\/strong> file in the hPanel dashboard:<\/p><ol class=\"wp-block-list\">\n<li>Head to <strong>hPanel &rarr; Files &rarr; File Manager<\/strong>.<\/li>\n\n\n\n<li>Choose the domain folder and click <strong>Go to File Manager<\/strong>.<\/li>\n\n\n\n<li>Locate the <strong>wp-config <\/strong>file in the <strong>public_html<\/strong> folder.<\/li>\n\n\n\n<li>Right-click and select <strong>Edit<\/strong>.<\/li>\n\n\n\n<li>In the following code, replace http:\/\/yoursitename.com with your new site URL:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">define('WP_HOME','https:\/\/domain.tld');\ndefine('WP_SITEURL','https:\/\/domain.tld');<\/pre><ol start=\"6\" class=\"wp-block-list\">\n<li>Insert it into the file and press the <strong>Save <\/strong>button. Your <strong>wp-config.php<\/strong> file should look like this:<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/wpconfig-definewphome-highlighted.png\"><img decoding=\"async\" width=\"1024\" height=\"950\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/wpconfig-definewphome-highlighted-1024x950.png\" alt=\"The contents of the wp-config.php file for WordPress. Define site home and url lines are highlighted \" class=\"wp-image-82437\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wpconfig-definewphome-highlighted-1024x950.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wpconfig-definewphome-highlighted-300x278.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wpconfig-definewphome-highlighted-150x139.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wpconfig-definewphome-highlighted-768x713.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wpconfig-definewphome-highlighted.png 1226w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>If you prefer using an FTP client, the process will be almost identical. You&rsquo;ll just need to use the FTP account credentials to access the site files.<\/p><p><strong>3. From the Database Using phpMyAdmin<\/strong><\/p><p>Another option to choose when changing your WordPress address URL is to directly edit the database in phpMyAdmin. To do so, follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to <strong>hPanel &rarr; Databases &rarr; phpMyAdmin<\/strong>.<\/li>\n\n\n\n<li>Choose the database where your WordPress files are located and click <strong>Enter phpMyAdmin<\/strong>.<\/li>\n\n\n\n<li>On the <strong>phpMyAdmin<\/strong> page, find the <strong>wp-option<\/strong> file.<\/li>\n\n\n\n<li>Select <strong>Edit<\/strong> on the <strong>site URL<\/strong> and <strong>home<\/strong> rows.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/phpmyadmin-edit.png\"><img decoding=\"async\" width=\"883\" height=\"194\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/phpmyadmin-edit.png\" alt=\"The edit option on the site URL and home rows.\" class=\"wp-image-43587\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/phpmyadmin-edit.png 883w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/phpmyadmin-edit-300x66.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/phpmyadmin-edit-150x33.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/phpmyadmin-edit-768x169.png 768w\" sizes=\"(max-width: 883px) 100vw, 883px\" \/><\/a><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>Replace the old URL with your new site address URL and press <strong>Go<\/strong>. The system will automatically save changes.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-5-reset-url-structure\">5. Reset URL Structure<\/h3><p>Now that you have changed your site address and URL, the next step is to update your URL structure. If you keep the same structure, the posts and pages might show the <a href=\"\/in\/tutorials\/how-to-fix-error-404\">404 error<\/a> whenever visitors try to access them.<\/p><p>This error happens when the server cannot fetch requested posts or pages due to missing resources. Therefore, it is important to modify the site address URL structure to make your content accessible to your visitors.<\/p><p>There are several ways to reset your URL structure:<\/p><p><strong>Reset Permalinks via the WordPress Dashboard<\/strong><\/p><p>To do this, <a href=\"\/in\/tutorials\/wordpress\/how-to-login-to-wordpress-dashboard\">log in to the WordPress dashboard<\/a> and go to <strong>Settings<\/strong> <strong>&rarr; Permalinks.<\/strong><\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/wordpress-permalink-settings.png\"><img decoding=\"async\" width=\"1024\" height=\"340\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/wordpress-permalink-settings-1024x340.png\" alt=\"Choosing custom structure on the WordPress Permalink Settings window. \" class=\"wp-image-43593\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wordpress-permalink-settings.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wordpress-permalink-settings-300x100.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wordpress-permalink-settings-150x50.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wordpress-permalink-settings-768x255.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/wordpress-permalink-settings-1536x510.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>By default, WordPress uses the <strong>Plain<\/strong> permalink structure. However, this structure doesn&rsquo;t contain any information about your content, making it the least ideal option for SEO.<\/p><p>Other URL structure options are as follow:<\/p><ul class=\"wp-block-list\">\n<li><strong>Day and name <\/strong>&ndash; includes the full publishing date as well as the post name.<\/li>\n\n\n\n<li><strong>Month and name <\/strong>&ndash; displays the month and year along with the post name.<\/li>\n\n\n\n<li><strong>Numeric <\/strong>&ndash; uses the post ID written in numbers.<\/li>\n\n\n\n<li><strong>Post name <\/strong>&ndash; shows the post slug in the URL.<\/li>\n\n\n\n<li><strong>Custom structure <\/strong>&ndash; allows you to customize what goes into your site URL with available tags, such as author and category.<\/li>\n<\/ul><p>The post name option is arguably the best URL structure since it&rsquo;s short and straightforward. However, feel free to choose the permalink structure as you need. By resetting <a href=\"\/in\/tutorials\/wordpress-broken-permalinks\">broken permalinks in WordPress<\/a>, the system will automatically redirect visitors from your old site to your new address.<\/p><p><strong>Search and Replace<\/strong><\/p><p>Another way to edit the WordPress URL structure is by using your <a href=\"\/in\/tutorials\/how-to-perform-search-and-replace-in-wordpress-database\/\">database&rsquo;s search and replace command<\/a>. Replace the value carefully since these changes will be irreversible.<\/p><p>If you&rsquo;re not comfortable with coding, perform this action is by using a plugin. We will show you how to do so with <a href=\"https:\/\/wordpress.org\/plugins\/better-search-replace\/\" target=\"_blank\" rel=\"noopener\">Better Search Replace<\/a>.<\/p><p>Before we get into the steps, <a href=\"\/in\/tutorials\/wordpress\/how-to-install-wordpress-plugins\">install the plugin<\/a>. Now, let&rsquo;s get started:<\/p><ol class=\"wp-block-list\">\n<li>From your WordPress admin dashboard, go to <strong>Tools &rarr; Better Search Replace<\/strong>.<\/li>\n\n\n\n<li>On the <strong>Search\/Replace<\/strong>, add the text string you want to search for and then add the replacement.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/better-search-replace.png\"><img decoding=\"async\" width=\"1024\" height=\"658\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/better-search-replace-1024x658.png\" alt=\"The Search\/Replace window.\" class=\"wp-image-43609\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/better-search-replace-1024x658.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/better-search-replace-300x193.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/better-search-replace-150x96.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/better-search-replace-768x493.png 768w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/better-search-replace.png 1211w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Next, select the database table you want to modify. It is also possible to select multiple tables.<\/li>\n\n\n\n<li>If you want to review changes in your database before applying them, simply tick the <strong>Run as dry run? <\/strong>button.<\/li>\n\n\n\n<li>Once everything is set, click <strong>Run Search\/Replace<\/strong>.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-6-redirect-an-old-wordpress-domain-permanently\">6. Redirect an Old WordPress Domain Permanently<\/h3><p>The final step when changing the WordPress domain is to create a 301 redirect &ndash; a URL redirection from your old domain to the new one. The redirect will carry over page ranking values, ensuring that your SEO efforts won&rsquo;t be lost when moving to a new domain.<\/p><p>We recommend keeping your old domain active for a while. This will allow users not aware of the domain change to reach the site and help notify search engines about the redirection.<\/p><p>Let&rsquo;s dive into the hPanel to edit the <a href=\"\/in\/tutorials\/create-default-wordpress-htaccess-file\">.htaccess<\/a> file and create a 301 redirect:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>hPanel<\/strong> <strong>&rarr; Files &rarr; File Manager<\/strong>.<\/li>\n\n\n\n<li>Select your old domain and click <strong>Go to File Manager<\/strong>.<\/li>\n\n\n\n<li>Find the <strong>.htaccess<\/strong> file in the <strong>public_html<\/strong> directory.<\/li>\n\n\n\n<li>Right-click and choose <strong>Edit<\/strong>.<\/li>\n\n\n\n<li>Replace http:\/\/yoursitename.com with your new domain, and insert the following code.<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#Options +FollowSymLinks\nRewriteEngine on\nRewriteRule ^(.*)$ http:\/\/yoursitename.com\/$1 [R=301,L]<\/pre><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/htaccess-followsymlinks.png\"><img decoding=\"async\" width=\"1014\" height=\"674\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/htaccess-followsymlinks.png\" alt=\"The .htaccess file on Hostinger file manager. The FollowSymLinks lines are added\" class=\"wp-image-82438\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/htaccess-followsymlinks.png 1014w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/htaccess-followsymlinks-300x199.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/htaccess-followsymlinks-150x100.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2022\/01\/htaccess-followsymlinks-768x510.png 768w\" sizes=\"(max-width: 1014px) 100vw, 1014px\" \/><\/a><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Press the <strong>Save <\/strong>button.<\/li>\n<\/ol><p>Similar to modifying <strong>wp-config.php<\/strong>, you can complete this step with an FTP client.<\/p><h2 class=\"wp-block-heading\" id=\"h-why-change-your-domain-name\">Why Change Your Domain Name<\/h2><p>Generally, most businesses and companies stick to their initial domain name and build their marketing strategies around it. However, sometimes changing a domain name is necessary.<\/p><p>Here are the most common reasons:<\/p><ul class=\"wp-block-list\">\n<li><strong>Rebranding <\/strong>&ndash; whether for new management or a new target audience, sometimes businesses need to be rebranded. A site address is one of the most important business identities, so you should align it with your new brand.<\/li>\n\n\n\n<li><strong>Domain extension change <\/strong>&ndash; if you&rsquo;re using an industry-specific subdomain like <strong><a href=\"\/in\/tld\/shop-domain\">.shop<\/a><\/strong> or a country-code extension like <strong>.uk<\/strong> or <a href=\"\/in\/tld\/co-uk-domain\"><strong>.co.uk<\/strong> domain<\/a> and want to use a more generic one, swapping to a new <a href=\"\/in\/tld\">domain name extension<\/a> like <strong>.com<\/strong>, <strong><a href=\"\/in\/tld\/net-domain\">.net<\/a><\/strong>, or <a href=\"\/in\/tld\/online-domain\"><strong>.online<\/strong> TLD<\/a> might be a great idea.<\/li>\n\n\n\n<li><strong>Create a user-friendly site URL <\/strong>&ndash; the simpler a domain name, the more memorable. Perhaps your old domain has complicated characters. In this case, change it to a more user-friendly address. A good rule of thumb is to keep it around 12 characters.<\/li>\n\n\n\n<li><strong>Merging multiple domains <\/strong>&ndash; maybe your old domain name has already gained authority, and you want to merge it with your new domain. Merging domains lets you garner <a href=\"\/in\/tutorials\/what-is-seo\/\">SEO<\/a> benefits and <a href=\"https:\/\/www.woorank.com\/en\/edu\/seo-guides\/link-juice\" target=\"_blank\" rel=\"noopener\">link juice<\/a> from the old website. It also helps with consistent branding and makes it easier to improve your SEO efforts.<\/li>\n<\/ul><p>No matter the reason, changing a domain name has its own pros and cons. For example, a domain change can decrease web traffic and lower page rankings.<\/p><p>This is because Google and other search engines will need time to crawl and index content on your new site address. As long as you implement the <a href=\"\/in\/tutorials\/wordpress-seo-tips\">best WordPress SEO practices<\/a>, you should be able to gain positions in the search engine result pages.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>Do not postpone changing your domain name. The sooner you do this, the smaller the risk of losing your SEO values.<\/p>\n                <\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"How to Change Domain Name in WordPress\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/vtTDGcpS2Ek?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<\/p><div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-ad2f72ca wp-block-group-is-layout-flex\">\n  <div class=\"youtube-shortcode\">\n    <div class=\"row\">\n      <div class=\"col-7 col-sm-8 d-flex align-items-center\">\n        <img decoding=\"async\" class=\"channel-logo\" src=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/youtube-channels\/hostinger-academy.jpg\" alt=\"youtube channel logo\">\n        <div class=\"d-flex flex-column justify-content-between\">\n          <span class=\"slogan d-none d-sm-block\">Subscribe For more educational videos!<\/span>\n          <span class=\"channel-name\">Hostinger Academy<\/span>\n                    <\/div>\n      <\/div>\n      <div class=\"col-5 col-sm-4 d-flex align-items-center justify-content-end\">\n          <a class=\"subscribe-button\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" href=\"http:\/\/www.youtube.com\/channel\/UCbNIC-svDbtUOH2qsLnPQPg?sub_confirmation=1\">\n            <img decoding=\"async\" src=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/icons\/youtube.svg\" alt=\"subscribe\">\n            <span>Subscribe<\/span>\n          <\/a>\n      <\/div>\n    <\/div>\n  <\/div>\n\n    \n\n\n\n<p><a href=\"\/in\/tutorials\/change-wordpress-domain-name\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n<\/div><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>There could be many reasons to change the WordPress domain name. Luckily, WordPress provides built-in URL address settings. This functionality allows you to manually tweak the PHP code through a file manager or an FTP client to change your domain effectively.<\/p><p>There are a lot of steps involved when changing your WordPress domain. With the correct implementation, you won&rsquo;t lose any SEO benefits either. Whichever method you end up using, we recommend following best SEO practices to ensure that your new domain will rank high on the SERPs.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Learn What Else You Can Do With WordPresss<\/h4>\n                    <p><a href=\"\/in\/tutorials\/what-is-sidebar-wordpress\">What is WordPress Sidebar<\/a><br>\n<a href=\"\/in\/tutorials\/how-to-delete-all-comments-wordpress\">How to Delete All Comments in WordPress<\/a><br>\n<a href=\"\/in\/tutorials\/how-to-embed-video-in-wordpress\/\">How to Embed a Video in WordPress<\/a><br>\n<a href=\"\/in\/tutorials\/how-to-secure-wordpress\">Guide to WordPress Security<\/a><br>\n<a href=\"\/in\/tutorials\/wordpress-export-users\">How to Export WordPress Users <\/a><br>\n<a href=\"\/in\/tutorials\/wordpress-auto-update\">How to Setup WordPress Auto-Update<\/a><br>\n<a href=\"\/in\/tutorials\/wordpress-private-page\">Guide to WordPress Private Pages and Posts<\/a><\/p>\n                <\/div>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As businesses start offering new products or services, or entering new markets, changing the business strategy might become inevitable. This includes aligning your domain name with your brand value. In addition to providing a readable address, a domain name is the unique address for a website and it also represents your brand. With that in [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/in\/tutorials\/change-wordpress-domain-name\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":129892,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Change Domain Name on WordPress - Step-by-Step Guide","rank_math_description":"Want to change your WordPress domain name? Here's our comprehensive step-by-step guide on how to purchase and set up a new domain!","rank_math_focus_keyword":"change wordpress domain","footnotes":""},"categories":[22633],"tags":[],"class_list":["post-7493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/change-wordpress-domain-name","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/redirecionar-site-wordpress-novo-dominio","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/cambiar-dominio-wordpress","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-mengganti-domain-wordpress","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/wordpress-url-andern","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/change-wordpress-domain-name","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/change-wordpress-domain-name","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/change-wordpress-domain-name","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/migrar-sitio-wordpress-nuevo-dominio-sin-danar-seo","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/migrar-sitio-wordpress-nuevo-dominio-sin-danar-seo","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/redirecionar-site-wordpress-novo-dominio","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/migrar-sitio-wordpress-nuevo-dominio-sin-danar-seo","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/change-wordpress-domain-name","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/change-wordpress-domain-name","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/change-wordpress-domain-name","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/change-wordpress-domain-name","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/7493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/comments?post=7493"}],"version-history":[{"count":128,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/7493\/revisions"}],"predecessor-version":[{"id":129889,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/7493\/revisions\/129889"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/media\/129892"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/media?parent=7493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/categories?post=7493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/tags?post=7493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}