{"id":16554,"date":"2025-04-07T10:11:53","date_gmt":"2025-04-07T09:11:53","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=16554"},"modified":"2025-04-07T10:11:54","modified_gmt":"2025-04-07T09:11:54","slug":"how-to-move-a-website-to-another-domain-on-cpanel","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/","title":{"rendered":"How to Move a Website to Another Domain on cPanel \u2013 MilesWeb Guide"},"content":{"rendered":"\n<p>Changing your website&#8217;s domain name can seem like a complex process, but with MilesWeb\u2019s <a href=\"https:\/\/www.milesweb.co.uk\/hosting\/cpanel-hosting\">cPanel hosting<\/a>, it becomes much more manageable. Whether you are rebranding or acquiring a better domain, migrating your site correctly ensures that you maintain functionality and SEO value. This guide will walk you through moving a website to another domain name on MilesWeb\u2019s cPanel with a step-by-step approach.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Before proceeding with the domain migration, ensure you have the following:<\/li>\n\n\n\n<li>MilesWeb cPanel access for both the old and new domains.<\/li>\n\n\n\n<li>A backup of your website files and databases.<\/li>\n\n\n\n<li>Updated DNS records for the new domain.<\/li>\n\n\n\n<li>FTP or File Manager access to transfer files.<\/li>\n\n\n\n<li>Basic knowledge of cPanel operations.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Backup Your Website Files and Database<\/h3>\n\n\n\n<p>Backup Files:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log into your MilesWeb cPanel.<\/li>\n\n\n\n<li>Navigate to File Manager and open the <strong><em>public_html directory<\/em><\/strong>.<\/li>\n\n\n\n<li>Select all files and click Compress to create a ZIP archive.<\/li>\n\n\n\n<li>Download the ZIP file to your local system.<\/li>\n<\/ol>\n\n\n\n<p><strong>Backup Database:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In cPanel, go to phpMyAdmin.<\/li>\n\n\n\n<li>Select your database from the left panel.<\/li>\n\n\n\n<li>Click on the Export tab and choose Quick as the export method.<\/li>\n\n\n\n<li>Click Go to download the SQL file.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Add a New Domain in MilesWeb CPanel<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In MilesWeb cPanel, head over to Addon Domains.<\/li>\n\n\n\n<li>Type in the new domain and set the document root to <strong><em>public_html\/newdomain.<\/em><\/strong><\/li>\n\n\n\n<li>You are finished when you click on Add Domain.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Transfer Files to the New Domain<\/h3>\n\n\n\n<p><strong>Launch File Manager from cPanel.<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the new domain directory, which is located in <strong><em>public_html\/newdomain.<\/em><\/strong><\/li>\n\n\n\n<li>Transfer the ZIP file that contains files for your website.<\/li>\n\n\n\n<li>Uncompress the ZIP file.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Make a new database and import an existing one.<\/h3>\n\n\n\n<p><strong>Select MySQL Databases in cPanel.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Make a new database and remember its name.<\/li>\n\n\n\n<li>Create a new user for this database with full permissions.<\/li>\n\n\n\n<li>In the newly created database, go to phpMyAdmin and then click on Import.<\/li>\n\n\n\n<li>Select the SQL file that you previously downloaded and click Go for the importing process.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5. Updating Configuration Settings<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>For WordPress Websites:&nbsp;<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access your File Manager and reset your wp-config.php file.&nbsp;<\/li>\n\n\n\n<li>Find these lines and make the required changes:&nbsp;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>define( 'WP_HOME', 'https:\/\/newdomain.com') ;<\/em><\/strong><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>define( 'WP_SITEURL', 'https:\/\/newdomain.com') ;<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Please ensure that the changes are kept and then proceed further.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>For Other CMS or Custom Websites:&nbsp;<\/strong><\/h4>\n\n\n\n<p>Change any configuration files that have the old domain in them.<\/p>\n\n\n\n<p>If needed, modify database URLs using phpMyAdmin alongside an SQL query such as:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>UPDATE wp_options SET option_value = replace(option_value, 'https:\/\/olddomain.com','https:\/\/newdomain.com') WHERE option_name = 'siteurl' OR option_name = 'home';<\/em><\/strong><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6. Changing DNS Records&nbsp;&nbsp;<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to your domain registrar and change your A record to redirect to MilesWeb\u2019s hosting server.&nbsp;<\/li>\n\n\n\n<li>Make changes to domain settings if using a CDN or Cloudflare.&nbsp;<\/li>\n\n\n\n<li>Please wait until the next 24 hours for full-service propagation.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Develop 301 Redirects for SEO&nbsp;<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In order to preserve SEO rankings, create 301 redirects from the old website link to the new one:&nbsp;<\/li>\n\n\n\n<li>Change your .htaccess file located in public_html for the old domain.&nbsp;<\/li>\n\n\n\n<li>In the file, add the following lines:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>RewriteEngine on\n<strong><em>RewriteCond %{HTTP_HOST} ^olddomain.com &#91;NC,OR]<\/em><\/strong>\n<strong><em>RewriteCond %{HTTP_HOST} ^www.olddomain.com &#91;NC]<\/em><\/strong>\n<strong><em>RewriteRule ^(.*)$ https:\/\/newdomain.com\/$1 &#91;L, R3 01, NC, NC]<\/em><\/strong><\/code><\/pre>\n\n\n\n<p>Ensure the file has been saved and uploaded.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8: Modify Requirements on Google Search Console and Analytics<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access your Google Search Console account and input the newly acquired domain.<\/li>\n\n\n\n<li>Utilize the Change of Address Tool to notify Google regarding the relocation.<\/li>\n\n\n\n<li>Modify your domain name in Google Analytics.<\/li>\n\n\n\n<li>Search for broken links and resolve any existing problems.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 9: Validate the Functionality of the Website<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Launch a browser and navigate to your new domain. Confirm that all pages are loading.<\/li>\n\n\n\n<li>Carry out testing on forms, images, and other functionalities.<\/li>\n\n\n\n<li>Perform an SEO audit to check for redirects, indexing, and other aspects.<\/li>\n<\/ul>\n\n\n\n<div class=\"vlt-box \">\n<div class=\"box-title\" style=\"background:#D5EAFF; color:#000\">Conclusion<\/div>\n<div class=\"box-content\" >\n<p>Using MilesWeb cPanel to migrate a website to a new domain follows a logical sequence designed to maintain uptime and protect your SEO. By carefully executing the steps above, you can migrate your website with no loss of traffic and data integrity.<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Changing your website&#8217;s domain name can seem like a complex process, but with MilesWeb\u2019s cPanel hosting, it becomes much more manageable. Whether you are rebranding or acquiring a better domain, migrating your site correctly ensures that you maintain functionality and SEO value. This guide will walk you through moving a website to another domain name [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-16554","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-cpanel-faq"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Move a Website to Another Domain on cPanel \u2013 MilesWeb Guide<\/title>\n<meta name=\"description\" content=\"Migrating to a new domain? This guide explains how to move your website using MilesWeb cPanel while preserving SEO rankings and avoiding downtime.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Move a Website to Another Domain on cPanel \u2013 MilesWeb Guide\" \/>\n<meta property=\"og:description\" content=\"Migrating to a new domain? This guide explains how to move your website using MilesWeb cPanel while preserving SEO rankings and avoiding downtime.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-07T09:11:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-07T09:11:54+00:00\" \/>\n<meta name=\"author\" content=\"Ujwala\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ujwala\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/\",\"name\":\"How to Move a Website to Another Domain on cPanel \u2013 MilesWeb Guide\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2025-04-07T09:11:53+00:00\",\"dateModified\":\"2025-04-07T09:11:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\"},\"description\":\"Migrating to a new domain? This guide explains how to move your website using MilesWeb cPanel while preserving SEO rankings and avoiding downtime.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Move a Website to Another Domain on cPanel \u2013 MilesWeb Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\",\"name\":\"Ujwala\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g\",\"caption\":\"Ujwala\"},\"description\":\"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/ujwala\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Move a Website to Another Domain on cPanel \u2013 MilesWeb Guide","description":"Migrating to a new domain? This guide explains how to move your website using MilesWeb cPanel while preserving SEO rankings and avoiding downtime.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/","og_locale":"en_GB","og_type":"article","og_title":"How to Move a Website to Another Domain on cPanel \u2013 MilesWeb Guide","og_description":"Migrating to a new domain? This guide explains how to move your website using MilesWeb cPanel while preserving SEO rankings and avoiding downtime.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2025-04-07T09:11:53+00:00","article_modified_time":"2025-04-07T09:11:54+00:00","author":"Ujwala","twitter_misc":{"Written by":"Ujwala","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/","name":"How to Move a Website to Another Domain on cPanel \u2013 MilesWeb Guide","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2025-04-07T09:11:53+00:00","dateModified":"2025-04-07T09:11:54+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8"},"description":"Migrating to a new domain? This guide explains how to move your website using MilesWeb cPanel while preserving SEO rankings and avoiding downtime.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/how-to-move-a-website-to-another-domain-on-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Move a Website to Another Domain on cPanel \u2013 MilesWeb Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8","name":"Ujwala","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g","caption":"Ujwala"},"description":"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/ujwala\/"}]}},"views":0,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/16554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=16554"}],"version-history":[{"count":3,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/16554\/revisions"}],"predecessor-version":[{"id":16557,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/16554\/revisions\/16557"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=16554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=16554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=16554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}