Duplicate a website

This is a quick overview over how to create a copy of a website on the same server.

Lets just make a numbered list with lots of numbers. Read carefully and complete each step before starting the next.

To make this easier we will call the old website "oldsite" and the new copied website for "newsite".

  1. Make sure you are on the right server. Log on to the server through RDP and locate the website you are about to copy, aka oldsite. If it's not there, you might be on the wrong server.
  2. Create a the new website, newsite, on the server with the website creation tool. You will then both get the website and the FTP-account set up automaticly. Don't log in.
  3. Go back into RDP and open IIS/Internet Information Server.
  4. Recycle newsite
  5. Open Windows Explorer and locate newsite in the site-folder.
    1. Delete newsite
    2. Make a copy of the oldsite folder
    3. Rename the copied folder and call it newsite
  6. Go to the App_Data folder
    1. Delete the newsite-folder.
    2. Make a copy of the oldsite folder
    3. Rename the copied folder and call it newsite
  7. Also in the App_Data folder
    1. Delete the newsite.config
    2. Make a copy of the oldsite.config
    3. Call it newsite.config
  8. Log into the CMS as a developer or superuser
  9. Lets update the database so it points to the right images and files
    1. Go to the developer-tools and open Database > Find and replace
    2. Table: UploadedFile, Field: FilePath
    3. Old value: /oldsite/
    4. New value: /newsite/
    5. Press "Replace"-button
  10. In the webbrowser open: newsite.[serverprefix]/admin/reset