Jump to content

[Solved] Duplicate Website On Another Domain Name


Recommended Posts

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 by T.Baron (see edit history)
Link to comment
Share on other sites

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

  • 1 month later...
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

  • 1 year later...

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...