Magento SEO - How to move Magento from subdomain to main domain


How to move Magento from subdomain to main domain

Magento 2 is awesome, now you can learn and practice every thing about Magento 2 with

Magestore Ultimate Magento 2 Tutorial

More than 150 tips, guides and tutorial. Everything is Free forever.

50 000 Magento developers have joined, explore Magento 2 in the easiest way today!

This tutorial will go through how to move Magento from subdomain to main domain step-by-step

  • Log in Magento Admin Panel

  • Go to System >> Configurations 

How to move Magento from subdomain to main domain 1

  • Pick the Web tab in the left bar, open 2 tabs Secure and Unsecure.
  • Change both the Secure URL and Unsecure URL to the domain that you are going to be moved to.  Be sure to include the "/" at the end of the domain name.
  • Go to your File Manager and click "Select All". Click "Move" and key in "/public_html" to move it to the main domain's directory.
  • You may need to clear the caches at "var/cache" and "var/session" after you have moved all files over.

 

You can also perform the Step 1 above through the database instead of going through the Magento admin:-

  1. Go to phpMyAdmin. Find and click your Magento database from the list of the left bar. 
  2. Scroll down and look for core_config_data. Click "Browse" (the first button at the side). 
  3. Find the path "web/unsecure/base_url" and "web/secure/base_url". 
  4. Click on the "Pencil" icon of both of the path above and edit the URLs accordingly (one path at a time)
  5. Click "Go" after the URLs have been edited. 


Other Answers in the Category "Magento SEO"

Top