This guide will go over a few different scenarios when moving a Fresh Store Builder website to a new domain on the same hosting account or moving a Fresh Store Builder store to a brand new hosting account with the same domain.
THIS SECTION IS FOR MOVING A FSB STORE TO A NEW DOMAIN ON THE SAME HOSTING ACCOUNT (FOR EXAMPLE, YOU ADDED A NEW ADDON DOMAIN TO YOUR SHARED HOSTING ACCOUNT AND THE CURRENT FSB STORE IS INSTALLED ON THE SAME HOSTING ACCOUNT AS YOUR NEW ADDON DOMAIN)
You must backup all the files in the directory for your current domain. The quickest way to do this in CPANEL is to click on FILE MANAGER and then find the FSB files for your domain, select them all and compress into a zip file. Then you can download that zip file and re-upload it to the new directory for your new domain.
If you have more than one FSB store installed and are only moving one of them. You need to make sure you are in the right directory before backing up the files.
Once you have extracted the FSB files into the new directory for the new domain.
You must go into PHPMYADMIN and go into the database for that store. You must go to the Parameters Table and you will find the column for URL URL:
Very important to make sure you click into the correct database that you want to change. Find the FSB store's database that you want to change the domain for and then click on the Parameters table
You must change the domain on the Parameters table to your new domain. Make sure to leave the / after the end of the domain.
So if your new store url is MyDomain.com add the / at the end MyDomain.com/ if your store is in a sub-folder then it should be MyDomain.com/foldername/
Once you have changed the URL URL to your new domain. You can visit yourdomain.com/freshadmin to login to the store. You will need to delete the stores cache before it will load up the main website.
THIS GUIDE IS FOR MOVING A FSB STORE FROM ONE HOST TO ANOTHER BUT NOT CHANGING THE DOMAIN NAME.
To move a FSB store to another hosting provider. You will need to backup the stores file using File Manager or FTP ( FTP might take a long time, there is a lot of files, we recommend using FILE MANAGER in your hosting account to zip up all the files at once)
(PLEASE SEE THE ABOVE IMAGES ON BACKING UP THE FILES USING FILE MANAGER)
You will also need to backup the stores database to use in the new hosting account. You can export the database using phpMYAdmin or if your hosting account lets you download the databases directly from the hosting panel, which ever works best for you.
Now that you have a backup of your FSB files and database. You will need to upload the FSB files on your new hosting server where the directory is for your domain. If you are not sure where that directory is for your domain, you need to contact your hosting provider to confirm the directory for you to extract the FSB files.
Once the files have been extracted, you will need to create a empty database in your new hosting account. (make sure to save the new DB user, DB Name and Password, you will need to edit a file to set the new details )
When you have created the new empty database, you will then need to import your exported database from the old hosting provider to your new empty database using phpMyAdmin ( depending on your host this might be a different name, you need to check with your host)
Once you have imported the database sql file to your new database, the final step is going to be to edit the Mysql.php file in the /config/ directory to set your new DB Name, DB user and password.
Once you have saved the new details in the Mysql.php you are all set.
You can now login to yourdomain.com/freshadmin to clear the stores cache and get it loading again ( NOTE THE WEBSITE ISN'T GOING TO LOAD ON THE NEW HOST UNTIL YOU HAVE CHANGED THE NAMESERVERS TO YOUR NEW HOSTING PROVIDER)
(NOTE) IF YOU ARE CHANGING YOUR STORES URL FROM YOURDOMAIN.COM TO YOURDOMAIN.COM/SUBFOLDERNAME/ THEN YOU MUST MODIFY THE .HTACCESS FILES TO INCLUDE THE SUB-FOLDERS DIRECTORY.
IF YOU DON'T DO THIS, YOU WILL HAVE 404 ERROR ISSUES ON THE WEBSITE WHEN YOU MOVE IT FROM MAIN DOMAIN SETUP TO A SUB-FOLDER SETUP.
Follow this guide