How to Move/Copy a Joomla! Website

Learn How to Move or Copy Your Joomla! Website to a New Location

Create the new folder (if it does not exist)

The first step in moving or copying your website to a new location is to create the new directory. You can do that via the File manager tool or via your favorite FTP client. For more information on how to use FTP, you can check our FTP Tutorial.

Create a copy of the files

Once the destination folder is created, copy the website's files in it. Again you can do that via the File manager tool or over FTP client. You need to copy all files from the Joomla! website's document root to the destination folder. Make sure that you do not forget the .htaccess file which is hidden and might not be visible. To ensure hidden files are shown, select the Show Hidden Files (dotfiles) checkbox that appears as a pop-up. Double-check if all related files have been copied to the new folder.

Create a copy of the database

Now you need to export your database. If you are not certain what is the database name, you may look it up in the configuration.php file. To export it, you may follow the instructions here. After you have your data exported, create a new database and import the content in it.

 Reconfigure Joomla! accordingly

The final step is to adjust the core settings which are defined in your main Joomla configuration.php file. Go to your SiteGround File Manager and open the configuration.php file for editing

Below are the main variables you need to adjust:

You should replace yourSGusername_mysqluser with the MySQL username you have created during the database setup process mentioned above. This also applies for the password of this username and for the database name. You should also replace yourSGusername with the username you are using for your SiteGround cPanel area. If you have completed the steps correctly, you should be able to see the copy of your Joomla! website now.