Reputation: 793
When I try to move my site prestashop site to new server and when I trying to enter it, it drops me to localhost. What else needs to be done? I did these steps:
But it does not work correctly :|
Upvotes: 1
Views: 5371
Reputation: 51
Login to your PrestaShop admin panel on domain you are moving from (olddomain.com)
Navigate to Preferences -> Maintenance and put your shop in maintenance mode to avoid loosing new customers or orders while moving the data.
Navigate to Preferences -> SEO & URLs and scroll down to Set shop URL section. There please change Shop domain and SSL domain to your new domain (newdomain.com). Update Base URI if it is different on your new domain.
Download all PrestaShop files and folders to your computer.
Login to your phpMyAdmin and create a backup/dump of the database you are using for your PrestaShop.
Create database on your new domain (newdomain.com) and import database backup/dump from your (olddomain.com)
Edit /config/settings.inc.php file which you have downloaded to your computer. There you should update the settings for the new database server (with your own settings instead of the examples here):
define('_DB_SERVER_', 'your.sqlhost.name.com'); define('_DB_NAME_', 'database_name'); define('_DB_USER_', 'database_user'); define('_DB_PASSWD_', 'database_pswd');
Upload all the PrestaShop files and folders to your new domain (newdomain.com) via FTP.
Remove all the files except index.php in /cache/smarty/compile and /cache/smarty/cache folders on your new domain (newdomain.com)
Login to your PrestaShop admin panel on new domain (newdomain.com) and check if it is working properly.
In your PrestaShop admin panel navigate to Preferences -> Maintenance and put your site online.
Check that all the links are functioning, that all your products, images, modules and themes are still there, and try to create a new account and place an order to make sure your shop is working as expected.
Upvotes: 1
Reputation: 11
You also need to change the ps_shop url, the value of the domain by www.yournewdomain.com
and change too the domain ssl by your new domaine www.yournewdomain.com
.
If you put your site in a subdomain then write the physical uri too
www.yournewdomain.com/name-of-your-suddomain-prestashop
.
It will work perfectly!
Upvotes: 1
Reputation: 4558
I had the same issue a few days ago and just spent 2 minutes trying to remember...
Anyway, if you're using 1.5, you also need to change the url in the shop_url
table. Hope this helps!
Upvotes: 0