{"id":4393,"date":"2019-05-07T16:36:04","date_gmt":"2019-05-07T20:36:04","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=4393"},"modified":"2019-05-08T12:45:47","modified_gmt":"2019-05-08T16:45:47","slug":"how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/","title":{"rendered":"How to Copy a WordPress Website Using a Different Domain Name on WHM\/cPanel"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"345\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/How-to-copy-wordpress.png\" alt=\"\" class=\"wp-image-4438\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Copy WordPress Website for Staging<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Owning a WordPress will for sure require some updates from time to time. Since the uptime of a website is important, it is recommended to update your staging environment before changing your website into a production website. This will help to avoid having to fix issues on your production website, and to have it down for an extended time. This article explains how to turn your staging website into a production website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To achieve this, you will need: <\/p>\n\n\n\n<p>&#8211; Access to cPanel account<br>\n&#8211; Shell access<br>\n&#8211; MySQL or MariaDB database<br>\n&#8211; A backup of your site and database in case of manipulation error<\/p>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">This article is for users who do not have WHM access. By having access to WHM, it would be easier to create a new cPanel user for the staging environment, than having it created into a sub-domain.<\/p>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<h2 class=\"wp-block-heading\" id=\"id-[READY]HowtoCopyaWordPressWebsiteUsingaDifferentdomainnameonWHM\/cPanel-HOWTO[READY]-PrepareStagingEnvironment\">Prepare Staging Environment<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. Create a sub-domain into your cPanel account. To do this, log into your cPanel account, and click on &#8220;<strong>Subdomain<\/strong>&#8220;, which is found in the &#8220;DOMAINS&#8221; menu. <\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Addon-domain-2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Addon-domain-2.jpg\" alt=\"\" class=\"wp-image-4398\" width=\"383\" height=\"183\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">2. Under &#8220;Create a Sub-domain&#8221;, <strong>enter the desired sub-domain<\/strong>&nbsp;name, but do not specify the domain it self; that part will be filled automatically. Once done, click &#8220;<strong>Create<\/strong>&#8220;.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Create-Addon-domain.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Create-Addon-domain.jpg\" alt=\"\" class=\"wp-image-4396\" width=\"383\" height=\"182\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">3. Go to MySQL Databases by clicking on <strong>cPanel Home<\/strong> &gt; <strong>MySQL Databases.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/MySQL-Database.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/MySQL-Database.jpg\" alt=\"\" class=\"wp-image-4399\" width=\"383\" height=\"183\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">4. Under &#8220;Create New Database&#8221;, <strong>enter<\/strong> the <strong>new database name<\/strong>, and <strong>click<\/strong> &#8220;<strong>Create Database<\/strong>&#8221; to create the sub-domain database. <\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Create-DB.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Create-DB.jpg\" alt=\"\" class=\"wp-image-4400\" width=\"383\" height=\"187\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">5. Once the new database is created, <strong>click<\/strong> on &#8220;<strong>Go Back<\/strong>&#8221; and scroll to MySQL Users. <strong>Select &#8220;Add New User&#8221;<\/strong>, <strong>specify<\/strong> the <strong>username<\/strong> and <strong>password<\/strong>, and then <strong>click<\/strong> &#8220;<strong>Create User<\/strong>&#8220;. <\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Create-DB-user-passwd.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Create-DB-user-passwd.jpg\" alt=\"\" class=\"wp-image-4401\" width=\"384\" height=\"136\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">6. Once the new username and password are created, <strong>click<\/strong> on &#8220;<strong>Go Back<\/strong>&#8220;, and <strong>scroll<\/strong> to &#8220;<strong>Add User To Database<\/strong>&#8220;. <strong>Select<\/strong> the corresponding <strong>user<\/strong> and <strong>database<\/strong>, and click &#8220;<strong>Add<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Assign-user-to-db.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Assign-user-to-db.jpg\" alt=\"\" class=\"wp-image-4402\" width=\"383\" height=\"121\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">7. Give the &#8220;Full Access&#8221; privileges to the new database using the new user, <strong>go to &#8220;Manage User Privileges&#8221; <\/strong>review the user and database, <strong>check &#8220;ALL PRIVILEGES&#8221;<\/strong>, and then <strong>click<\/strong> <strong>&#8220;Make Changes&#8221;<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Assign-db-privileges.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Assign-db-privileges.jpg\" alt=\"\" class=\"wp-image-4403\" width=\"383\" height=\"230\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<h2 class=\"wp-block-heading\" id=\"id-[READY]HowtoCopyaWordPressWebsiteUsingaDifferentdomainnameonWHM\/cPanel-HOWTO[READY]-MigrateYourData\">Migrate Your Data<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that the sub-domain environment has been configured and is ready, it&#8217;s now time to do a data migration.<\/p>\n\n\n\n<p>1. Log into the shell access using SSH and do a copy of the current website you&#8217;re using. The copy will be done out of the public_html folder, and in this case, you will do the copy using sync. To do so, use the following syntax:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># rsync -a \/home\/CPANEL_USER\/public_html\/ \/home\/CPANEL_USER\/SUBDOMAIN_PREFIX\/<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/origsite-copy1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/origsite-copy1.jpg\" alt=\"\" class=\"wp-image-4415\" width=\"344\" height=\"34\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">2. Move the website copy into the right directory of the new sub-domain. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># rsync -a \/home\/CPANEL_USER\/SUBDOMAIN_PREFIX\/ \/home\/CPANEL_USER\/public_html\/SUBDOMAIN_PREFIX\/<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/origsite-copy2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/origsite-copy2.jpg\" alt=\"\" class=\"wp-image-4414\" width=\"379\" height=\"19\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">3. Do a dump of your current site database. To find the databasename, database user, and password, check in the wp-config.php file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mysqldump -u\u00ad DB_USER -p DATABASE_NAME > DUMP_FILE_NAME.sql<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Dump-DB.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Dump-DB.jpg\" alt=\"\" class=\"wp-image-4413\" width=\"284\" height=\"48\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">4. Restore the dump of the database onto the new sub-domain WP database.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mysql -u NEW_DB_USER -p NEW_DATABASE_NAME &lt; DUMP_FILE_NAME.sql<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Restore-DB.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Restore-DB.jpg\" alt=\"\" class=\"wp-image-4412\" width=\"386\" height=\"42\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">5. Update the file wp-config.php located in the sub-domain folder, to match the new database name, database user, and password. Look for the following lines :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'DB_NAME', 'NEW_DB_NAME_HERE' );\ndefine( 'DB_USER', 'NEW_DB_USER_HERE' );\ndefine( 'DB_PASSWORD', 'NEW_DB_PASSWORD_HERE' );<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/wp-config.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/wp-config.jpg\" alt=\"\" class=\"wp-image-4407\" width=\"586\" height=\"184\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">6. At this point, the database in the newly installed sub-domain WordPress still has the original site URL hard-coded into it. This has to be updated with the sub-domain URL. The fastest way to do it would be to change it into the database directly. You will need to first determine your WordPress database prefix, which can be found into the wp-config.php file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$table_prefix = 'wp_';<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/wp-config2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/wp-config2.jpg\" alt=\"\" class=\"wp-image-4408\" width=\"541\" height=\"186\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">7. Update the site URL into the sub-domain WordPress database.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mysql -u NEW_DB_USER -p NEW_DATABASE_NAME\n* Enter the database password\n\n# mysql> UPDATE wp_options SET option_value = replace(option_value, 'ORIGNAL.DOMAIN', 'SUBDOMAIN-PREFIX.ORIGNAL.DOMAIN') WHERE option_name = 'home' OR option_name = 'siteurl';\nQuery OK, 0 rows affected (0.00 sec)\nRows matched: 2 Changed: 0 Warnings: 0\n\n# mysql> UPDATE wp_posts SET guid = replace(guid, 'ORIGNAL.DOMAIN', 'SUBDOMAIN-PREFIX.ORIGNAL.DOMAIN');\nQuery OK, 0 rows affected (0.02 sec)\nRows matched: 964 Changed: 0 Warnings: 0\n\n# mysql> UPDATE wp_posts SET post_content = replace(post_content, 'ORIGNAL.DOMAIN', 'SUBDOMAIN-PREFIX.ORIGNAL.DOMAIN');\nQuery OK, 0 rows affected (0.05 sec)\nRows matched: 964 Changed: 0 Warnings: 0\n\n# mysql> UPDATE wp_postmeta SET meta_value = replace(meta_value, 'ORIGNAL.DOMAIN', 'SUBDOMAIN-PREFIX.ORIGNAL.DOMAIN');\nQuery OK, 0 rows affected (0.01 sec)\nRows matched: 686 Changed: 0 Warnings: 0<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Update-DB.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Update-DB.jpg\" alt=\"\" class=\"wp-image-4409\" width=\"668\" height=\"259\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<h2 class=\"wp-block-heading\">Test Your Sub-domain Website<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Having migrated the data, it&#8217;s now time to test your site for any errors. Take a look at php.ini, .user.ini, or any other files of that kind, which may have a hard-coded path. At this point, the WordPress site under the sub-domain may be working already. If it is not working, then any of the following two major things may be the cause:<br><br>1. Some URL are hard coded into the files into directory \/home\/CPANEL_USER\/SUBDOMAIN_PREFIX\/. This can be fixed by doing a replace into all files that are into that specific directory. The following command syntax may be used to do so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/home\/CPANEL_USER\/SUBDOMAIN_PREFIX\/ -type f -exec sed -i 's#ORIGNAL.DOMAIN#SUBDOMAIN-PREFIX.ORIGNAL.DOMAIN#g' {} +<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Replace-URL.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Replace-URL.jpg\" alt=\"\" class=\"wp-image-4410\" width=\"495\" height=\"20\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">2. Some PATH are hard coded into the files into directory \/home\/CPANEL_USER\/SUBDOMAIN_PREFIX\/. This can be fixed by doing a replace into all files that are into that specific directory. The following command syntax  may be used to do so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/home\/CPANEL_USER\/SUBDOMAIN_PREFIX\/ -type f -exec sed -i 's#\/home\/CPANEL_USER\/public_html#\/home\/CPANEL_USER\/public_html\/SUBDOMAIN_PREFIX#g' {} +<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><a href=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Replace-PATH.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/Replace-PATH.jpg\" alt=\"\" class=\"wp-image-4411\" width=\"619\" height=\"17\"\/><\/a><\/figure>\n\n\n\n<br class=\"custom-break\">\n\n\n\n<p class=\"wp-block-paragraph\">Hopefully, after all this hard work, the WordPress that has been copied into the sub-domain should be working correctly, just as the original site. If you&#8217;re still experiencing issues, check the error_log file in the sub-domain directory; it may give more details about any errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Need help with the above kind of operation? Being a customer of Globo.Tech, you can contact our support department for just that. Our highly technical staff would be glad to assist you. <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Copy WordPress Website for Staging Owning a WordPress will for sure require some updates from time to time. Since the uptime of a website is important, it is recommended to update your staging environment before changing your website into a production website. This will help to avoid having to fix issues on your production website,<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":4446,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[102,118,117,20],"class_list":["post-4393","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-hosting","tag-cpanel","tag-dev","tag-staging","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Copy a WordPress Website Using a Different Domain Name on WHM\/cPanel - Globo.Tech<\/title>\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.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Copy a WordPress Website Using a Different Domain Name on WHM\/cPanel - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"Copy WordPress Website for Staging Owning a WordPress will for sure require some updates from time to time. Since the uptime of a website is important, it is recommended to update your staging environment before changing your website into a production website. This will help to avoid having to fix issues on your production website,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-07T20:36:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-08T16:45:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/How-to-copy-wordpress3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"484\" \/>\n\t<meta property=\"og:image:height\" content=\"252\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"How to Copy a WordPress Website Using a Different Domain Name on WHM\\\/cPanel\",\"datePublished\":\"2019-05-07T20:36:04+00:00\",\"dateModified\":\"2019-05-08T16:45:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/\"},\"wordCount\":782,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/How-to-copy-wordpress3.png\",\"keywords\":[\"cPanel\",\"Dev\",\"Staging\",\"Wordpress\"],\"articleSection\":[\"Web Hosting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/\",\"name\":\"How to Copy a WordPress Website Using a Different Domain Name on WHM\\\/cPanel - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/How-to-copy-wordpress3.png\",\"datePublished\":\"2019-05-07T20:36:04+00:00\",\"dateModified\":\"2019-05-08T16:45:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/How-to-copy-wordpress3.png\",\"contentUrl\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/How-to-copy-wordpress3.png\",\"width\":484,\"height\":252},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Copy a WordPress Website Using a Different Domain Name on WHM\\\/cPanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\\\/\\\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Copy a WordPress Website Using a Different Domain Name on WHM\/cPanel - Globo.Tech","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.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Copy a WordPress Website Using a Different Domain Name on WHM\/cPanel - Globo.Tech","og_description":"Copy WordPress Website for Staging Owning a WordPress will for sure require some updates from time to time. Since the uptime of a website is important, it is recommended to update your staging environment before changing your website into a production website. This will help to avoid having to fix issues on your production website,","og_url":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/","og_site_name":"Globo.Tech","article_published_time":"2019-05-07T20:36:04+00:00","article_modified_time":"2019-05-08T16:45:47+00:00","og_image":[{"width":484,"height":252,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/How-to-copy-wordpress3.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"How to Copy a WordPress Website Using a Different Domain Name on WHM\/cPanel","datePublished":"2019-05-07T20:36:04+00:00","dateModified":"2019-05-08T16:45:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/"},"wordCount":782,"commentCount":0,"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/How-to-copy-wordpress3.png","keywords":["cPanel","Dev","Staging","Wordpress"],"articleSection":["Web Hosting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/","url":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/","name":"How to Copy a WordPress Website Using a Different Domain Name on WHM\/cPanel - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/How-to-copy-wordpress3.png","datePublished":"2019-05-07T20:36:04+00:00","dateModified":"2019-05-08T16:45:47+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/#primaryimage","url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/How-to-copy-wordpress3.png","contentUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/05\/How-to-copy-wordpress3.png","width":484,"height":252},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-copy-a-wordpress-website-using-a-different-domain-name-on-whm-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Copy a WordPress Website Using a Different Domain Name on WHM\/cPanel"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/4393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=4393"}],"version-history":[{"count":21,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/4393\/revisions"}],"predecessor-version":[{"id":4445,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/4393\/revisions\/4445"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media\/4446"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=4393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=4393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=4393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}