{"id":2789,"date":"2026-10-06T17:57:21","date_gmt":"2026-10-06T12:27:21","guid":{"rendered":"https:\/\/ehostpiya.in\/blog\/?p=2789"},"modified":"2026-10-06T17:57:25","modified_gmt":"2026-10-06T12:27:25","slug":"how-to-move-magento-to-a-new-domain","status":"publish","type":"post","link":"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/","title":{"rendered":"How to Move Magento to a New Domain"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_88 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#How_to_Move_Magento_to_a_New_Domain\" >How to Move Magento to a New Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Example_Domain_Migration\" >Example Domain Migration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Why_Move_a_Magento_Store_to_a_New_Domain\" >Why Move a Magento Store to a New Domain?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#What_You_Need_Before_Starting\" >What You Need Before Starting<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_1_Create_a_Complete_Magento_Backup\" >Step 1: Create a Complete Magento Backup<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_2_Prepare_the_New_Domain\" >Step 2: Prepare the New Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_3_Install_SSL_for_the_New_Domain\" >Step 3: Install SSL for the New Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_4_Add_the_New_Domain_to_the_Web_Server\" >Step 4: Add the New Domain to the Web Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_5_Check_Your_Current_Magento_URLs\" >Step 5: Check Your Current Magento URLs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_6_Update_Magento_Base_URLs\" >Step 6: Update Magento Base URLs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_7_Make_Sure_HTTPS_Is_Enabled\" >Step 7: Make Sure HTTPS Is Enabled<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_8_Check_for_the_Old_Domain_in_the_Database\" >Step 8: Check for the Old Domain in the Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_9_Search_the_Magento_Files_for_the_Old_Domain\" >Step 9: Search the Magento Files for the Old Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_10_Clear_Magento_Cache\" >Step 10: Clear Magento Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_11_Clear_Generated_Data_When_Necessary\" >Step 11: Clear Generated Data When Necessary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_12_Reindex_Magento\" >Step 12: Reindex Magento<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_13_Configure_301_Redirects_From_the_Old_Domain\" >Step 13: Configure 301 Redirects From the Old Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_14_Configure_Apache_Redirects\" >Step 14: Configure Apache Redirects<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_15_Configure_Nginx_Redirects\" >Step 15: Configure Nginx Redirects<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_16_Do_Not_Redirect_the_New_Domain_Back_to_the_Old_Domain\" >Step 16: Do Not Redirect the New Domain Back to the Old Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_17_Check_Canonical_URLs\" >Step 17: Check Canonical URLs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_18_Update_XML_Sitemap\" >Step 18: Update XML Sitemap<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_19_Update_Robotstxt\" >Step 19: Update Robots.txt<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_20_Update_Google_Search_Console\" >Step 20: Update Google Search Console<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_21_Update_Analytics\" >Step 21: Update Analytics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_22_Update_Third-Party_Services\" >Step 22: Update Third-Party Services<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_23_Update_Email_Configuration\" >Step 23: Update Email Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_24_Test_Customer_Accounts\" >Step 24: Test Customer Accounts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-29\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_25_Test_Checkout_and_Payments\" >Step 25: Test Checkout and Payments<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-30\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_26_Check_Product_Images\" >Step 26: Check Product Images<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-31\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_27_Check_Internal_Links\" >Step 27: Check Internal Links<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-32\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_28_Test_the_Magento_Admin_Panel\" >Step 28: Test the Magento Admin Panel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-33\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_29_Test_the_Site_Before_Going_Live\" >Step 29: Test the Site Before Going Live<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-34\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Frontend\" >Frontend<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-35\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Backend\" >Backend<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-36\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Technical\" >Technical<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-37\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Step_30_Monitor_the_Old_Domain\" >Step 30: Monitor the Old Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-38\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Common_Magento_Domain_Migration_Problems\" >Common Magento Domain Migration Problems<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-39\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Redirect_Loop\" >Redirect Loop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-40\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Images_Still_Use_the_Old_Domain\" >Images Still Use the Old Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-41\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Admin_Panel_Redirects_to_the_Old_Domain\" >Admin Panel Redirects to the Old Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-42\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Checkout_Does_Not_Work\" >Checkout Does Not Work<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-43\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Customers_Cannot_Log_In\" >Customers Cannot Log In<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-44\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Search_Rankings_Drop\" >Search Rankings Drop<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-45\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Best_Practices_for_Magento_Domain_Migration\" >Best Practices for Magento Domain Migration<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-46\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Keep_URL_Paths_the_Same\" >Keep URL Paths the Same<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-47\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Use_301_Redirects\" >Use 301 Redirects<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-48\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Keep_the_Old_Domain_Active\" >Keep the Old Domain Active<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-49\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Back_Up_Before_Changes\" >Back Up Before Changes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-50\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Test_Before_Launch\" >Test Before Launch<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-51\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Update_External_Services\" >Update External Services<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-52\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Monitor_After_Launch\" >Monitor After Launch<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-53\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Magento_New_Domain_Migration_Checklist\" >Magento New Domain Migration Checklist<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-54\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Preparation\" >Preparation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-55\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Magento_Configuration\" >Magento Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-56\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#SEO\" >SEO<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-57\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Integrations\" >Integrations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-58\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Testing\" >Testing<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-59\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#Final_Thoughts\" >Final Thoughts<\/a><\/li><\/ul><\/nav><\/div>\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Move_Magento_to_a_New_Domain\"><\/span>How to Move Magento to a New Domain<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Changing the domain of a Magento store requires more than pointing a new domain to the existing server. Magento stores the website URL in its configuration, and references to the old domain may also exist in the database, cached data, media, emails, redirects, and third-party integrations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A poorly planned domain migration can result in broken links, redirect loops, missing images, checkout problems, SSL errors, or lost search-engine rankings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The safest approach is to prepare the new domain, back up the store, update Magento&#8217;s base URLs, carefully replace old domain references where necessary, configure redirects, install SSL, test the entire store, and monitor the migration after launch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how to move a Magento store from an old domain to a new domain while minimizing downtime and SEO problems.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example_Domain_Migration\"><\/span>Example Domain Migration<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Suppose your current Magento store is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;oldstore.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and you want to move it to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;newstore.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The migration will look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Old Domain\noldstore.com\n      |\n      | Magento Store\n      \u2193\nUpdate Configuration\n      |\n      \u2193\nNew Domain\nnewstore.com\n      |\n      \u2193\n301 Redirects\n      |\n      \u2193\nSearch Engines \/ Visitors<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The old domain should generally remain available so that visitors and search engines can be redirected to the corresponding pages on the new domain.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Move_a_Magento_Store_to_a_New_Domain\"><\/span>Why Move a Magento Store to a New Domain?<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">There are several reasons a business might change its domain:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Rebranding<\/li>\n\n\n\n<li>Company name change<\/li>\n\n\n\n<li>Better domain name<\/li>\n\n\n\n<li>International expansion<\/li>\n\n\n\n<li>Merging websites<\/li>\n\n\n\n<li>Marketing strategy<\/li>\n\n\n\n<li>Moving to a new brand<\/li>\n\n\n\n<li>Changing from a temporary domain to a permanent domain<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Whatever the reason, the migration should be planned as a website move rather than simply changing DNS.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_You_Need_Before_Starting\"><\/span>What You Need Before Starting<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Before changing the Magento domain, make sure you have access to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Magento Admin Panel<\/li>\n\n\n\n<li>Magento server<\/li>\n\n\n\n<li>SSH<\/li>\n\n\n\n<li>Database<\/li>\n\n\n\n<li>DNS management<\/li>\n\n\n\n<li>SSL certificate management<\/li>\n\n\n\n<li>Web server configuration<\/li>\n\n\n\n<li>Search Console accounts<\/li>\n\n\n\n<li>Analytics platform<\/li>\n\n\n\n<li>CDN or WAF configuration<\/li>\n\n\n\n<li>Email configuration<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Also create a complete backup before making changes.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Create_a_Complete_Magento_Backup\"><\/span>Step 1: Create a Complete Magento Backup<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Before modifying the domain configuration, back up the store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your backup should include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Magento database<\/li>\n\n\n\n<li>Magento files<\/li>\n\n\n\n<li>Product images<\/li>\n\n\n\n<li>Media<\/li>\n\n\n\n<li>Custom modules<\/li>\n\n\n\n<li>Custom themes<\/li>\n\n\n\n<li>Configuration<\/li>\n\n\n\n<li>Composer files<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">A database backup can be created using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysqldump -u DB_USER -p DATABASE_NAME &gt; magento-backup.sql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For a compressed backup:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysqldump -u DB_USER -p DATABASE_NAME | gzip &gt; magento-backup.sql.gz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Keep the backup separate from the production website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not begin the domain migration until you have a verified recovery point.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Prepare_the_New_Domain\"><\/span>Step 2: Prepare the New Domain<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Register or configure the new domain before changing Magento.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>newstore.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Configure DNS records to point to the Magento server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on your setup, you may need records such as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>newstore.com       \u2192 Server IP\nwww.newstore.com   \u2192 Server IP<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you use a CDN or reverse proxy, configure the new domain there as well.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_3_Install_SSL_for_the_New_Domain\"><\/span>Step 3: Install SSL for the New Domain<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">The new domain should use HTTPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Configure an SSL certificate for:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;newstore.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and, if required:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;www.newstore.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Test the certificate before changing Magento&#8217;s URLs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The certificate is valid<\/li>\n\n\n\n<li>The certificate chain is complete<\/li>\n\n\n\n<li>HTTPS works<\/li>\n\n\n\n<li>HTTP can redirect to HTTPS<\/li>\n\n\n\n<li>The CDN\/proxy SSL configuration is correct<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_4_Add_the_New_Domain_to_the_Web_Server\"><\/span>Step 4: Add the New Domain to the Web Server<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Configure your Apache or Nginx server to recognize the new domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The web server should point the new domain to Magento&#8217;s <code>pub<\/code> directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/www\/magento\/pub<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Do not point the public website directly at the entire Magento project root.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After configuring the new virtual host\/server block, reload the web server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, depending on your system:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl reload nginx<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl reload apache2<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_5_Check_Your_Current_Magento_URLs\"><\/span>Step 5: Check Your Current Magento URLs<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Before making changes, check the current Magento Base URLs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento config:show web\/unsecure\/base_url<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento config:show web\/secure\/base_url<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You may see:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;oldstore.com\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">These values need to be changed to the new domain.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_6_Update_Magento_Base_URLs\"><\/span>Step 6: Update Magento Base URLs<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">From the Magento root directory, update the base URL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento setup:store-config:set --base-url=\"https:\/\/newstore.com\/\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then configure the secure URL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento setup:store-config:set --base-url-secure=\"https:\/\/newstore.com\/\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If your installation uses a separate <code>www<\/code> version, use the URL you intend to make canonical.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;newstore.com\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">rather than inconsistently mixing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;newstore.com\/\nhttps:\/\/www.newstore.com\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Choose one canonical version and use redirects for the other.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_7_Make_Sure_HTTPS_Is_Enabled\"><\/span>Step 7: Make Sure HTTPS Is Enabled<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Magento should use HTTPS for both the storefront and Admin Panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can configure secure frontend access with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento config:set web\/secure\/use_in_frontend 1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For the Admin Panel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento config:set web\/secure\/use_in_adminhtml 1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then flush the cache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_8_Check_for_the_Old_Domain_in_the_Database\"><\/span>Step 8: Check for the Old Domain in the Database<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Changing the Base URL does not necessarily replace every occurrence of the old domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The old domain may appear in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CMS pages<\/li>\n\n\n\n<li>CMS blocks<\/li>\n\n\n\n<li>Product descriptions<\/li>\n\n\n\n<li>Category descriptions<\/li>\n\n\n\n<li>Custom HTML<\/li>\n\n\n\n<li>Configuration<\/li>\n\n\n\n<li>Third-party extension settings<\/li>\n\n\n\n<li>Email templates<\/li>\n\n\n\n<li>Custom code<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Before performing a global replacement, <strong>create another database backup<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not blindly replace every occurrence of the old domain because some values may need to remain unchanged for redirects, historical records, integrations, or other purposes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For controlled replacements, identify the specific tables and fields that contain the old domain and update only the appropriate values.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_9_Search_the_Magento_Files_for_the_Old_Domain\"><\/span>Step 9: Search the Magento Files for the Old Domain<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Custom code may contain the old domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From the Magento directory, you can search for references with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -R \"oldstore.com\" app\/ --exclude-dir=cache<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can also search custom modules:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -R \"oldstore.com\" app\/code\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And custom themes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -R \"oldstore.com\" app\/design\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Review every result before changing it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not automatically replace domain names inside third-party libraries or generated files.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_10_Clear_Magento_Cache\"><\/span>Step 10: Clear Magento Cache<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">After changing the Base URLs, clear the Magento cache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check cache status:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:status<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If your environment uses additional caching systems such as Redis or Varnish, clear or purge those caches according to your deployment configuration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_11_Clear_Generated_Data_When_Necessary\"><\/span>Step 11: Clear Generated Data When Necessary<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">If your Magento deployment requires regenerated static assets, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento setup:static-content:deploy -f<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You may also need:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento setup:di:compile<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The exact deployment process depends on your Magento version and production workflow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not unnecessarily delete production files without understanding what your deployment process requires.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_12_Reindex_Magento\"><\/span>Step 12: Reindex Magento<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Check indexer status:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento indexer:status<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If necessary, rebuild indexes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento indexer:reindex<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then check again:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento indexer:status<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Test product search, categories, layered navigation, and other catalog functionality after reindexing.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_13_Configure_301_Redirects_From_the_Old_Domain\"><\/span>Step 13: Configure 301 Redirects From the Old Domain<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">One of the most important parts of a domain migration is redirecting the old domain to the new domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;oldstore.com\/product\/example<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">should redirect to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;newstore.com\/product\/example<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use <strong>301 permanent redirects<\/strong> for permanent domain changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Avoid redirecting every old URL to the new homepage when an equivalent page exists.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The ideal structure is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Old product URL\n       \u2193\n301 Redirect\n       \u2193\nNew product URL<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This provides a better experience for users and helps search engines understand the migration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_14_Configure_Apache_Redirects\"><\/span>Step 14: Configure Apache Redirects<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">If the old domain and new domain are handled by Apache, a redirect can be configured in the old domain&#8217;s virtual host or appropriate configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A basic example is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RewriteEngine On\nRewriteCond %{HTTP_HOST} ^oldstore\\.com$ &#91;NC]\nRewriteRule ^(.*)$ https:\/\/newstore.com\/$1 &#91;R=301,L]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you also use the <code>www<\/code> version, include the appropriate hostname rules.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Test redirects carefully to avoid redirect loops.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_15_Configure_Nginx_Redirects\"><\/span>Step 15: Configure Nginx Redirects<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">With Nginx, you can create a dedicated server block for the old domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A simplified example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name oldstore.com www.oldstore.com;\n\n    return 301 https:\/\/newstore.com$request_uri;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This preserves the requested path.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oldstore.com\/category\/shoes<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">can redirect to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>newstore.com\/category\/shoes<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The exact configuration should match your existing HTTPS and server architecture.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_16_Do_Not_Redirect_the_New_Domain_Back_to_the_Old_Domain\"><\/span>Step 16: Do Not Redirect the New Domain Back to the Old Domain<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">After changing Magento&#8217;s Base URLs, verify that the new domain does not redirect back to the old one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, this is incorrect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>newstore.com\n   \u2193\noldstore.com\n   \u2193\nnewstore.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This creates a redirect loop.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Test both domains independently.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_17_Check_Canonical_URLs\"><\/span>Step 17: Check Canonical URLs<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Magento and your SEO configuration should use the new domain as the canonical domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check product pages, category pages, CMS pages, and other important URLs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;link rel=\"canonical\" href=\"https:\/\/newstore.com\/product\/example\"&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The canonical URL should not continue pointing to the old domain after the migration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_18_Update_XML_Sitemap\"><\/span>Step 18: Update XML Sitemap<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">After changing the domain, regenerate or update the Magento XML sitemap so that URLs use the new domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your sitemap should contain URLs such as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;newstore.com\/\nhttps:\/\/newstore.com\/category\/example\nhttps:\/\/newstore.com\/product\/example<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It should not continue listing the old domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Submit the new sitemap to your search-engine tools after the migration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_19_Update_Robotstxt\"><\/span>Step 19: Update Robots.txt<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Check your <code>robots.txt<\/code> file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure it does not contain references to the old domain that should now point to the new one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have a sitemap declaration, update it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Sitemap: https:\/\/newstore.com\/sitemap.xml<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Be careful not to accidentally block the new site during migration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_20_Update_Google_Search_Console\"><\/span>Step 20: Update Google Search Console<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">If you use Google Search Console, add and verify the new domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Submit the new sitemap.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a domain migration, use the appropriate site-move functionality where available and follow Google&#8217;s current migration guidance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also monitor:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Indexing<\/li>\n\n\n\n<li>Coverage<\/li>\n\n\n\n<li>Redirects<\/li>\n\n\n\n<li>Crawl errors<\/li>\n\n\n\n<li>Search traffic<\/li>\n\n\n\n<li>Sitemap processing<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Expect search visibility to fluctuate temporarily while search engines process the domain change.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_21_Update_Analytics\"><\/span>Step 21: Update Analytics<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Update your analytics configuration to recognize the new domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on your analytics setup, check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Measurement configuration<\/li>\n\n\n\n<li>Referral exclusions<\/li>\n\n\n\n<li>Cross-domain settings<\/li>\n\n\n\n<li>Conversion tracking<\/li>\n\n\n\n<li>Ecommerce tracking<\/li>\n\n\n\n<li>Payment gateway referral handling<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Test an actual purchase or test transaction where appropriate.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_22_Update_Third-Party_Services\"><\/span>Step 22: Update Third-Party Services<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Your Magento store may use services that are tied to the old domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Review:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Payment gateways<\/li>\n\n\n\n<li>Shipping APIs<\/li>\n\n\n\n<li>Tax services<\/li>\n\n\n\n<li>Email platforms<\/li>\n\n\n\n<li>SMTP services<\/li>\n\n\n\n<li>CDN<\/li>\n\n\n\n<li>WAF<\/li>\n\n\n\n<li>CAPTCHA<\/li>\n\n\n\n<li>Fraud detection<\/li>\n\n\n\n<li>Marketing platforms<\/li>\n\n\n\n<li>Webhooks<\/li>\n\n\n\n<li>OAuth applications<\/li>\n\n\n\n<li>Social login<\/li>\n\n\n\n<li>Product feeds<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Update the callback URLs, webhook URLs, API settings, or allowed domains where necessary.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_23_Update_Email_Configuration\"><\/span>Step 23: Update Email Configuration<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">If your business email is changing along with the domain, configure the new email addresses separately.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sales@newstore.com\nsupport@newstore.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Update Magento&#8217;s transactional email configuration and verify:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sender addresses<\/li>\n\n\n\n<li>SMTP settings<\/li>\n\n\n\n<li>SPF<\/li>\n\n\n\n<li>DKIM<\/li>\n\n\n\n<li>DMARC<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Send test emails for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>New account<\/li>\n\n\n\n<li>Order confirmation<\/li>\n\n\n\n<li>Shipment<\/li>\n\n\n\n<li>Password reset<\/li>\n\n\n\n<li>Contact form<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_24_Test_Customer_Accounts\"><\/span>Step 24: Test Customer Accounts<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Customer accounts should continue working after the domain migration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Test:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Customer login<\/li>\n\n\n\n<li>Registration<\/li>\n\n\n\n<li>Password reset<\/li>\n\n\n\n<li>Account dashboard<\/li>\n\n\n\n<li>Order history<\/li>\n\n\n\n<li>Saved addresses<\/li>\n\n\n\n<li>Wishlist<\/li>\n\n\n\n<li>Stored preferences<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Pay particular attention to login cookies and HTTPS configuration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_25_Test_Checkout_and_Payments\"><\/span>Step 25: Test Checkout and Payments<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Checkout is one of the most important parts of a Magento domain migration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Perform a complete test order.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cart<\/li>\n\n\n\n<li>Customer information<\/li>\n\n\n\n<li>Billing address<\/li>\n\n\n\n<li>Shipping address<\/li>\n\n\n\n<li>Shipping method<\/li>\n\n\n\n<li>Tax<\/li>\n\n\n\n<li>Coupon<\/li>\n\n\n\n<li>Payment method<\/li>\n\n\n\n<li>Order placement<\/li>\n\n\n\n<li>Confirmation page<\/li>\n\n\n\n<li>Confirmation email<\/li>\n\n\n\n<li>Payment gateway callback<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">A store should not be considered successfully migrated until checkout has been tested.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_26_Check_Product_Images\"><\/span>Step 26: Check Product Images<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Open several product pages and verify that images load correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also inspect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pub\/media\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If images reference the old domain, identify whether those references are generated by Magento, stored in content, or created by custom code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not blindly modify image URLs without understanding how your Magento media system generates them.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_27_Check_Internal_Links\"><\/span>Step 27: Check Internal Links<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Search your site for links that still point to the old domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigation<\/li>\n\n\n\n<li>Product descriptions<\/li>\n\n\n\n<li>Category descriptions<\/li>\n\n\n\n<li>CMS pages<\/li>\n\n\n\n<li>CMS blocks<\/li>\n\n\n\n<li>Footer links<\/li>\n\n\n\n<li>Blog content<\/li>\n\n\n\n<li>Custom landing pages<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Internal links should generally point directly to the new domain rather than relying on unnecessary redirects.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_28_Test_the_Magento_Admin_Panel\"><\/span>Step 28: Test the Magento Admin Panel<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Access the Admin Panel using the new domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;newstore.com\/your-admin-path\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Verify:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Login<\/li>\n\n\n\n<li>Dashboard<\/li>\n\n\n\n<li>Products<\/li>\n\n\n\n<li>Categories<\/li>\n\n\n\n<li>Orders<\/li>\n\n\n\n<li>Customers<\/li>\n\n\n\n<li>Configuration<\/li>\n\n\n\n<li>Extensions<\/li>\n\n\n\n<li>Reports<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you previously customized the Magento Admin URL, preserve that configuration during the domain migration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_29_Test_the_Site_Before_Going_Live\"><\/span>Step 29: Test the Site Before Going Live<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Before announcing the new domain, perform a complete test.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Frontend\"><\/span>Frontend<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Homepage<\/li>\n\n\n\n<li>Categories<\/li>\n\n\n\n<li>Products<\/li>\n\n\n\n<li>Search<\/li>\n\n\n\n<li>Images<\/li>\n\n\n\n<li>CMS pages<\/li>\n\n\n\n<li>Customer registration<\/li>\n\n\n\n<li>Customer login<\/li>\n\n\n\n<li>Cart<\/li>\n\n\n\n<li>Checkout<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Backend\"><\/span>Backend<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Admin login<\/li>\n\n\n\n<li>Product management<\/li>\n\n\n\n<li>Order management<\/li>\n\n\n\n<li>Customer management<\/li>\n\n\n\n<li>Configuration<\/li>\n\n\n\n<li>Extensions<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Technical\"><\/span>Technical<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>HTTPS<\/li>\n\n\n\n<li>DNS<\/li>\n\n\n\n<li>Redirects<\/li>\n\n\n\n<li>Canonical URLs<\/li>\n\n\n\n<li>Sitemap<\/li>\n\n\n\n<li>Robots.txt<\/li>\n\n\n\n<li>Cron<\/li>\n\n\n\n<li>Cache<\/li>\n\n\n\n<li>Indexers<\/li>\n\n\n\n<li>Email<\/li>\n\n\n\n<li>Payment gateway<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_30_Monitor_the_Old_Domain\"><\/span>Step 30: Monitor the Old Domain<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Do not immediately remove the old domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keep it active and redirect it to the new domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Monitor:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Redirect traffic<\/li>\n\n\n\n<li>404 errors<\/li>\n\n\n\n<li>Search-engine crawling<\/li>\n\n\n\n<li>Referral traffic<\/li>\n\n\n\n<li>Analytics<\/li>\n\n\n\n<li>Server logs<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This allows visitors and search engines to discover the new domain.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Common_Magento_Domain_Migration_Problems\"><\/span>Common Magento Domain Migration Problems<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Redirect_Loop\"><\/span>Redirect Loop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the new domain keeps redirecting between HTTP and HTTPS or between the old and new domains, check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Magento Base URLs<\/li>\n\n\n\n<li>SSL configuration<\/li>\n\n\n\n<li>CDN settings<\/li>\n\n\n\n<li>Web-server redirects<\/li>\n\n\n\n<li>Proxy headers<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure only one canonical URL is being enforced.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Images_Still_Use_the_Old_Domain\"><\/span>Images Still Use the Old Domain<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Magento Base URLs<\/li>\n\n\n\n<li>CMS content<\/li>\n\n\n\n<li>Product descriptions<\/li>\n\n\n\n<li>Theme files<\/li>\n\n\n\n<li>Custom modules<\/li>\n\n\n\n<li>CDN configuration<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Avoid performing uncontrolled database replacements.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Admin_Panel_Redirects_to_the_Old_Domain\"><\/span>Admin Panel Redirects to the Old Domain<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Check Magento&#8217;s secure Base URL and any custom Admin configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Clear Magento cache afterward:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Checkout_Does_Not_Work\"><\/span>Checkout Does Not Work<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>HTTPS<\/li>\n\n\n\n<li>Payment gateway configuration<\/li>\n\n\n\n<li>JavaScript errors<\/li>\n\n\n\n<li>Cookie configuration<\/li>\n\n\n\n<li>Third-party callbacks<\/li>\n\n\n\n<li>Base URLs<\/li>\n\n\n\n<li>CDN\/WAF rules<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Test the payment gateway separately if required.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Customers_Cannot_Log_In\"><\/span>Customers Cannot Log In<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>HTTPS<\/li>\n\n\n\n<li>Cookies<\/li>\n\n\n\n<li>Session configuration<\/li>\n\n\n\n<li>Redis<\/li>\n\n\n\n<li>Base URLs<\/li>\n\n\n\n<li>CDN caching<\/li>\n\n\n\n<li>Browser cache<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Clear application caches and test in a private browser window.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Search_Rankings_Drop\"><\/span>Search Rankings Drop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A temporary fluctuation can occur after a domain migration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reduce the risk by:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Using permanent redirects<\/li>\n\n\n\n<li>Preserving URL paths where possible<\/li>\n\n\n\n<li>Updating canonical URLs<\/li>\n\n\n\n<li>Updating XML sitemaps<\/li>\n\n\n\n<li>Verifying the new domain<\/li>\n\n\n\n<li>Monitoring crawl errors<\/li>\n\n\n\n<li>Updating important external links<\/li>\n\n\n\n<li>Maintaining relevant content<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Do not intentionally change the domain and URL structure at the same time unless there is a strong reason to do so.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Best_Practices_for_Magento_Domain_Migration\"><\/span>Best Practices for Magento Domain Migration<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Keep_URL_Paths_the_Same\"><\/span>Keep URL Paths the Same<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If possible, preserve:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oldstore.com\/product\/example<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>newstore.com\/product\/example<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This makes the migration easier to manage and reduces unnecessary URL changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Use_301_Redirects\"><\/span>Use 301 Redirects<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Permanent redirects should connect old URLs with their corresponding new URLs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Keep_the_Old_Domain_Active\"><\/span>Keep the Old Domain Active<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Do not immediately cancel the old domain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Back_Up_Before_Changes\"><\/span>Back Up Before Changes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create and verify a complete backup before modifying Magento.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Test_Before_Launch\"><\/span>Test Before Launch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use a controlled environment to test the new domain before making it public.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Update_External_Services\"><\/span>Update External Services<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Payment gateways, APIs, email systems, CDNs, and other services may require domain changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Monitor_After_Launch\"><\/span>Monitor After Launch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Continue monitoring errors, traffic, indexing, and checkout after the migration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Magento_New_Domain_Migration_Checklist\"><\/span>Magento New Domain Migration Checklist<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Preparation\"><\/span>Preparation<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Register\/configure new domain<\/li>\n\n\n\n<li>Configure DNS<\/li>\n\n\n\n<li>Install SSL<\/li>\n\n\n\n<li>Configure web server<\/li>\n\n\n\n<li>Back up Magento<\/li>\n\n\n\n<li>Back up database<\/li>\n\n\n\n<li>Record current configuration<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Magento_Configuration\"><\/span>Magento Configuration<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Update Base URL<\/li>\n\n\n\n<li>Update Secure Base URL<\/li>\n\n\n\n<li>Enable HTTPS<\/li>\n\n\n\n<li>Flush cache<\/li>\n\n\n\n<li>Reindex<\/li>\n\n\n\n<li>Deploy static content if required<\/li>\n\n\n\n<li>Verify Admin URL<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"SEO\"><\/span>SEO<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configure 301 redirects<\/li>\n\n\n\n<li>Update canonical URLs<\/li>\n\n\n\n<li>Update XML sitemap<\/li>\n\n\n\n<li>Check robots.txt<\/li>\n\n\n\n<li>Verify new domain in Search Console<\/li>\n\n\n\n<li>Submit new sitemap<\/li>\n\n\n\n<li>Monitor crawl errors<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Integrations\"><\/span>Integrations<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Update payment gateways<\/li>\n\n\n\n<li>Update shipping services<\/li>\n\n\n\n<li>Update tax services<\/li>\n\n\n\n<li>Update SMTP<\/li>\n\n\n\n<li>Update CDN\/WAF<\/li>\n\n\n\n<li>Update webhooks<\/li>\n\n\n\n<li>Update API callbacks<\/li>\n\n\n\n<li>Update analytics<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Testing\"><\/span>Testing<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Test homepage<\/li>\n\n\n\n<li>Test products<\/li>\n\n\n\n<li>Test categories<\/li>\n\n\n\n<li>Test search<\/li>\n\n\n\n<li>Test customer login<\/li>\n\n\n\n<li>Test password reset<\/li>\n\n\n\n<li>Test cart<\/li>\n\n\n\n<li>Test checkout<\/li>\n\n\n\n<li>Test payments<\/li>\n\n\n\n<li>Test emails<\/li>\n\n\n\n<li>Test Admin Panel<\/li>\n\n\n\n<li>Check redirects<\/li>\n\n\n\n<li>Check HTTPS<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Final_Thoughts\"><\/span>Final Thoughts<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Moving Magento to a new domain requires careful coordination between Magento configuration, DNS, SSL, web-server settings, database content, redirects, SEO, and third-party integrations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The safest approach is to <strong>back up the store first, prepare the new domain and server, update Magento&#8217;s Base URLs, preserve existing URL paths where possible, configure permanent redirects, update external services, thoroughly test the store, and monitor the old and new domains after launch<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most importantly, avoid treating a domain change as a simple DNS update. Magento, search engines, customers, payment providers, and external services all need to recognize the new domain. A well-planned migration can make the transition smooth while minimizing downtime, broken links, and SEO disruption.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"How to Move Magento to a New Domain Changing the domain of a Magento store requires more than&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[138],"tags":[],"class_list":["post-2789","post","type-post","status-publish","format-standard","category-magento","cs-entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Move Magento to a New Domain - Web Hosting Blogs by Ehostpiya | Tips and Tricks<\/title>\n<meta name=\"description\" content=\"How to Move Magento to a New Domain - Magento\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Move Magento to a New Domain - Web Hosting Blogs by Ehostpiya | Tips and Tricks\" \/>\n<meta property=\"og:description\" content=\"How to Move Magento to a New Domain - Magento\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting Blogs by Ehostpiya | Tips and Tricks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/ehostpiya\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-06T12:27:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-06T12:27:25+00:00\" \/>\n<meta name=\"author\" content=\"Vandeeta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vandeeta\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-move-magento-to-a-new-domain\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-move-magento-to-a-new-domain\\\/\"},\"author\":{\"name\":\"Vandeeta\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#\\\/schema\\\/person\\\/7e99667266ef1b118ad734c1c035d796\"},\"headline\":\"How to Move Magento to a New Domain\",\"datePublished\":\"2026-10-06T12:27:21+00:00\",\"dateModified\":\"2026-10-06T12:27:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-move-magento-to-a-new-domain\\\/\"},\"wordCount\":2370,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#organization\"},\"articleSection\":[\"Magento\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-move-magento-to-a-new-domain\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-move-magento-to-a-new-domain\\\/\",\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-move-magento-to-a-new-domain\\\/\",\"name\":\"How to Move Magento to a New Domain - Web Hosting Blogs by Ehostpiya | Tips and Tricks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#website\"},\"datePublished\":\"2026-10-06T12:27:21+00:00\",\"dateModified\":\"2026-10-06T12:27:25+00:00\",\"description\":\"How to Move Magento to a New Domain - Magento\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-move-magento-to-a-new-domain\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-move-magento-to-a-new-domain\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-move-magento-to-a-new-domain\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Move Magento to a New Domain\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/\",\"name\":\"Web Hosting Blogs by Ehostpiya | Tips and Tricks\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#organization\",\"name\":\"Web Hosting Blogs by Ehostpiya | Tips and Tricks\",\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/512.png\",\"contentUrl\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/512.png\",\"width\":512,\"height\":512,\"caption\":\"Web Hosting Blogs by Ehostpiya | Tips and Tricks\"},\"image\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/ehostpiya\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#\\\/schema\\\/person\\\/7e99667266ef1b118ad734c1c035d796\",\"name\":\"Vandeeta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g\",\"caption\":\"Vandeeta\"},\"sameAs\":[\"https:\\\/\\\/ehostpiya.in\\\/blog\"],\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/author\\\/ehostpiya_blog\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Move Magento to a New Domain - Web Hosting Blogs by Ehostpiya | Tips and Tricks","description":"How to Move Magento to a New Domain - Magento","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:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/","og_locale":"en_US","og_type":"article","og_title":"How to Move Magento to a New Domain - Web Hosting Blogs by Ehostpiya | Tips and Tricks","og_description":"How to Move Magento to a New Domain - Magento","og_url":"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/","og_site_name":"Web Hosting Blogs by Ehostpiya | Tips and Tricks","article_publisher":"https:\/\/facebook.com\/ehostpiya","article_published_time":"2026-10-06T12:27:21+00:00","article_modified_time":"2026-10-06T12:27:25+00:00","author":"Vandeeta","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vandeeta","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#article","isPartOf":{"@id":"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/"},"author":{"name":"Vandeeta","@id":"https:\/\/ehostpiya.in\/blog\/#\/schema\/person\/7e99667266ef1b118ad734c1c035d796"},"headline":"How to Move Magento to a New Domain","datePublished":"2026-10-06T12:27:21+00:00","dateModified":"2026-10-06T12:27:25+00:00","mainEntityOfPage":{"@id":"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/"},"wordCount":2370,"commentCount":0,"publisher":{"@id":"https:\/\/ehostpiya.in\/blog\/#organization"},"articleSection":["Magento"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/","url":"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/","name":"How to Move Magento to a New Domain - Web Hosting Blogs by Ehostpiya | Tips and Tricks","isPartOf":{"@id":"https:\/\/ehostpiya.in\/blog\/#website"},"datePublished":"2026-10-06T12:27:21+00:00","dateModified":"2026-10-06T12:27:25+00:00","description":"How to Move Magento to a New Domain - Magento","breadcrumb":{"@id":"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ehostpiya.in\/blog\/how-to-move-magento-to-a-new-domain\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ehostpiya.in\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Move Magento to a New Domain"}]},{"@type":"WebSite","@id":"https:\/\/ehostpiya.in\/blog\/#website","url":"https:\/\/ehostpiya.in\/blog\/","name":"Web Hosting Blogs by Ehostpiya | Tips and Tricks","description":"","publisher":{"@id":"https:\/\/ehostpiya.in\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ehostpiya.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ehostpiya.in\/blog\/#organization","name":"Web Hosting Blogs by Ehostpiya | Tips and Tricks","url":"https:\/\/ehostpiya.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ehostpiya.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/ehostpiya.in\/blog\/wp-content\/uploads\/2026\/08\/512.png","contentUrl":"https:\/\/ehostpiya.in\/blog\/wp-content\/uploads\/2026\/08\/512.png","width":512,"height":512,"caption":"Web Hosting Blogs by Ehostpiya | Tips and Tricks"},"image":{"@id":"https:\/\/ehostpiya.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/ehostpiya"]},{"@type":"Person","@id":"https:\/\/ehostpiya.in\/blog\/#\/schema\/person\/7e99667266ef1b118ad734c1c035d796","name":"Vandeeta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g","caption":"Vandeeta"},"sameAs":["https:\/\/ehostpiya.in\/blog"],"url":"https:\/\/ehostpiya.in\/blog\/author\/ehostpiya_blog\/"}]}},"_links":{"self":[{"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/posts\/2789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/comments?post=2789"}],"version-history":[{"count":1,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/posts\/2789\/revisions"}],"predecessor-version":[{"id":2790,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/posts\/2789\/revisions\/2790"}],"wp:attachment":[{"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/media?parent=2789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/categories?post=2789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/tags?post=2789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}