Julio UCME Posted February 10, 2012 Share Posted February 10, 2012 I want to copy all the files from one domain to a new one. I suppose that for that I have to use FileZilla, but recently I installed Prestashop on the new page (so it's new and doesn't have anything in it). To copy all the files from my other domain to the new one, do I have to erase all the files that I just installed of Prestashop or do I have to just copy it without erasing anything (and without any problems). Please I really need the help, I need to put the new page running. Att. Julio Espinal Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 10, 2012 Share Posted February 10, 2012 Hi Julio, You will want to erase the installation on your new domain and then copy everything over, but you will also need to make some changes to your config/settings.inc.php file to ensure that your customers are pointed in the right direction. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 21, 2012 Author Share Posted February 21, 2012 It's because of the config/settings.inc.php that when I try to access my new domain it redirects me to the older one? Right now I'm looking at the file, but I really don't know what to change. I don't want to mess it up. Would you give me a heads up? -Julio Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 21, 2012 Share Posted February 21, 2012 Hi Julio, On your new site, please be sure to regenerate your htaccess file via the Back Office under Tools > Generators. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 21, 2012 Author Share Posted February 21, 2012 But would it erase the access to my old site? I ask, because this morning, whenever I changed something in the back office of my new site, it changed in the old one. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 21, 2012 Share Posted February 21, 2012 But would it erase the access to my old site? I ask, because this morning, whenever I changed something in the back office of my new site, it changed in the old one. This is because the current file still points to your old site. If you're only changing it on the new site, it should break that connection and instead connect it to the new site. Regardless, it's a good idea to back everything up just in case (as with any changes), but that should take care of it for you. -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 21, 2012 Author Share Posted February 21, 2012 I'll try that thanks. Link to comment Share on other sites More sharing options...
Julio UCME Posted February 21, 2012 Author Share Posted February 21, 2012 It keeps saying Error, page could not be found (the new one and the old one). Link to comment Share on other sites More sharing options...
Julio UCME Posted February 21, 2012 Author Share Posted February 21, 2012 In other words, it won't give me access to the shop. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 21, 2012 Share Posted February 21, 2012 Is this before or after regenerating your htaccess file? -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 21, 2012 Author Share Posted February 21, 2012 Right now it does the same, but the other way around. When typing the old site it redirects me to my new site. It doesn't keep them separated. I was thinking it could be that the settings.inc.php are the same, 'cause when I changed those this morning I didn't have access to all the products that are in my old shop. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 21, 2012 Share Posted February 21, 2012 And did you already regenerate the htaccess file for your new site? -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 21, 2012 Author Share Posted February 21, 2012 Yes. I did all that. To be specific I clicked the optimization and the disable apache multiviews, and save in the second try, because the first time I clicked Optimization and Friendly Url, and that's when the pages gave me an error. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 21, 2012 Share Posted February 21, 2012 What are your two URLs? And have you tried comparing the config.inc.php files again now that you've made that change? -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 21, 2012 Author Share Posted February 21, 2012 My two URLs are: www.betaniacandy.net (old) and www.dulcesonline.com (new). Both are still the same. I haven't made the change in the config, because when I did I lost the products in my new site (it was as the first time I installed PrestaShop). Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 21, 2012 Share Posted February 21, 2012 Hi Julio, Can you please make sure you've followed every step on this guide when it comes to moving to a new domain? -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 21, 2012 Author Share Posted February 21, 2012 Thanks for that Mike. I'll take a look. Link to comment Share on other sites More sharing options...
Julio UCME Posted February 23, 2012 Author Share Posted February 23, 2012 I read and entered to the cPanel, and I noticed that the in my new domain I have the two databases (the one I copied from the old site to the new one and the one which was created when I previously installed prestashop in my new domain). Could these be the cause of my old site still redirecting to my new one? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 23, 2012 Share Posted February 23, 2012 I read and entered to the cPanel, and I noticed that the in my new domain I have the two databases (the one I copied from the old site to the new one and the one which was created when I previously installed prestashop in my new domain). Could these be the cause of my old site still redirecting to my new one? Hi Julio, We've just put together a brand new guide on this topic, if you follow all the directions here you should be able to resolve this pretty easily. -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 23, 2012 Author Share Posted February 23, 2012 I'm sorry... I meant two types of data in my new domain database. One starting in bc_ (which is the one I coppied from my old domain) and one starting in ps_ (which I suppose that it is the one which was created when i accidently installed prestashop instead of copying the data from my old site to my new site). I'll take a look to that guide. Thanks Mike. Link to comment Share on other sites More sharing options...
Julio UCME Posted February 24, 2012 Author Share Posted February 24, 2012 Hi Mike, I'm in the Server through FilleZilla in the step of erasing all data except the index.php of the specified folders. I noticed that my tools/smarty.cache doesn't have one. Would that affect the store in some way? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 24, 2012 Share Posted February 24, 2012 Hi Mike, I'm in the Server through FilleZilla in the step of erasing all data except the index.php of the specified folders. I noticed that my tools/smarty.cache doesn't have one. Would that affect the store in some way? No, that is normal. -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 24, 2012 Author Share Posted February 24, 2012 I did everything step by step as it appears in the guide, but now I'm getting a 403 error when trying to enter my domain. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 24, 2012 Share Posted February 24, 2012 And did you already regenerate your .htaccess file? -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 24, 2012 Author Share Posted February 24, 2012 Yes, I clicked the optimization and the friendly Url I also clicked on the robot.txt Link to comment Share on other sites More sharing options...
Julio UCME Posted February 24, 2012 Author Share Posted February 24, 2012 I keep getting this message: Error occurred: 403 - forbidden Apache Server at: d1163374.domain.com Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 24, 2012 Share Posted February 24, 2012 Yes, I clicked the optimization and the friendly Url I also clicked on the robot.txt But did you actually regenerate the .htaccess file in your Back Office under Tools > Generators? -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 24, 2012 Author Share Posted February 24, 2012 Yes, I clicked generate... Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 24, 2012 Share Posted February 24, 2012 And did you already make all the necessary changes to your settings.inc.php file? That error message appears to still be pointing visitors to your old website, as you can see if you click here. -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 24, 2012 Author Share Posted February 24, 2012 I did those changes. I have a doubt.. the guide says to delete, in my new server, all the data except the index.php of the tools folders.My new server is the one of my new domain right? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 24, 2012 Share Posted February 24, 2012 I did those changes. I have a doubt.. the guide says to delete, in my new server, all the data except the index.php of the tools folders.My new server is the one of my new domain right? Yes. -Mike Link to comment Share on other sites More sharing options...
Julio UCME Posted February 24, 2012 Author Share Posted February 24, 2012 Then, yes I did everything. I still don't know what I did wrong. Link to comment Share on other sites More sharing options...
Julio UCME Posted February 24, 2012 Author Share Posted February 24, 2012 I'm going to try and do it again, but the second step in the guide. I'll let know if I get it to work. ^.^ Link to comment Share on other sites More sharing options...
TWDesign Posted February 25, 2012 Share Posted February 25, 2012 Maybe this will help: 1) Take a Zip file backup of all the files on your existing site. 2) Export the database of your existing site into an SQL file. 3) Go to your new site, import and open up the zip file. 4) Create a new MYSQL database (most web hosts will have a MYSQL Wizard in CPanel to walk you through this) 5) In your newly created site find the file "settings.inc.php" [i think it was in a folder called "config". You might need to check] 6) Download the "settings.inc.php" file and update the information so that it contains the name of your newly created database from step 4, the name of the database user and the password. Save the file and upload it back to the new site, overriding the existing settings file of course. 7) Now the important part. Open up the new database and import the sql file from step 2 into it. Then find the "ps_configuration" table. You need to manually amend the database record values for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL and possible PS_BASE_URI if you have been hosting in a development subdomain. Just make sure all the new values reflect your new domain and/or subdirectory. 8) Almost there. Find the .htaccess file in your new site and change the permissions to 777. Not sure if this is strictly necessary. Some people say to do it. After you have finished you should change back to 644 I think. 9) Now. You MAY have to type the login url directly into your browser, something like www.mynewdomain.com/admin . Then enter the same username/password combination you have always used to enter the site. 10) In the admin section go to Tools / Generators and regenerate your .htaccess file. I believe this recreates your new friendly urls and overides any old urls. You should be golden ! One gotcha I had was that when I typed in the url of the new homepage into my Firefox browser it kept getting directed back to my old site. To fix this I opened up the browser preferences and deleted any cookies relating to the old site. Then it worked fine. Just beware of that. 1 Link to comment Share on other sites More sharing options...
Julio UCME Posted February 27, 2012 Author Share Posted February 27, 2012 Thank you TW Design. I'll try it that way and see if I make it work. I'll let you know. Link to comment Share on other sites More sharing options...
Julio UCME Posted March 1, 2012 Author Share Posted March 1, 2012 TW Design, I followed every single step you wrote and that solved it! I made it! The last time I couldn't do it, it supposedly was an error in the connection to the database, so I had to do a backup of everything again and then do your steps! Thanks again! I also want to thank you Mike for all your help! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 1, 2012 Share Posted March 1, 2012 Thanks TWDesign! I will go ahead and mark this thread as solved. Happy selling! -Mike Link to comment Share on other sites More sharing options...
Recommended Posts