T.Baron Posted December 16, 2015 Share Posted December 16, 2015 (edited) Hello there, So I've been trying to duplicate my current website on another server so I can have a production server and a developement server, but I can't seem to find my way out. I have a production server running the website and an empty developement server right now. The point is if I copy everything, when I change the url in the admin on my new server, it will change also the domain name of my production website, and every user will be redirected on my dev server. At this point I have changed too many things to just do a clean install of prestashop and the theme I use. And whenever I search for any solution on google, it will show me thousands of tutorials on how to migrate my website, but that's not what I want... How can I have a perfect duplication of the website with different admin folders ? Thanks in advance, Best regards. Edited January 27, 2016 by T.Baron (see edit history) Link to comment Share on other sites More sharing options...
Rolige Posted December 16, 2015 Share Posted December 16, 2015 1.- Turn on maintenance mode 2.- Copy all files to the new domain 3.- Copy the database to the new domain 4.- Create user and associated to this database (in the new domain) 5.- Change the user and password (created previously) in the file: new-domain.com/config/settings.inc.php 6.- Change the name of your admin folder 7.- Access to your back office: new-domain.com/new_admin_folder 8.- Go to Preferences > SEO & URLs > SET SHOP URL, change "Shop domain" and "SSL domain" to "www.new-domain.com" 9.- Clear all the cache 10.- Turn off maintenande mode in both shops. Link to comment Share on other sites More sharing options...
T.Baron Posted December 21, 2015 Author Share Posted December 21, 2015 Thank you ! It seems to work, but I don't get why step 5 is after step 4, since settings.inc.php contains DB info (which needs to be changed for the new user to be created) Link to comment Share on other sites More sharing options...
weloveaccents Posted February 3, 2016 Share Posted February 3, 2016 Hi Sadly this duplicate solution did not work for me. I am trying to duplicate my live shop cockneyclobber.co.uk to a new test domain cockneyclobber.uk. I have spent days of my time following various different solutions online (disable/enable friendly URLs, disable/enable canonical, refresh the .htaccess file etc etc). None of them have worked. I either get 500 server error OR as is the case with your solution, my submenus disappear in Admin so that when I click on Preferences there are no options, so I can't get to the Maintenance option to switch out of Maintenance mode. Do you have any ideas what could be wrong ? I have tried so many solutions and it's crazy that it's not possible to do this. Many Thanks John Link to comment Share on other sites More sharing options...
Gipielle Posted July 11, 2017 Share Posted July 11, 2017 Hi Sadly this duplicate solution did not work for me. I am trying to duplicate my live shop cockneyclobber.co.uk to a new test domain cockneyclobber.uk. I have spent days of my time following various different solutions online (disable/enable friendly URLs, disable/enable canonical, refresh the .htaccess file etc etc). None of them have worked. I either get 500 server error OR as is the case with your solution, my submenus disappear in Admin so that when I click on Preferences there are no options, so I can't get to the Maintenance option to switch out of Maintenance mode. Do you have any ideas what could be wrong ? I have tried so many solutions and it's crazy that it's not possible to do this. Many Thanks John Do you solve this ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now