2.4.2.1. Website transfer to hosting
From local device
Use this method if the site files and its database are located on your device in the form of files or archives with files.
- Add site for hosting.
- Important! Necessarily correct database connection settings in the site configuration file. If the site uses absolute paths, correct them (instruction for OpenCart).
- Check the site for service address.
- Direct domain for hosting.
From another host
Automatic transfer
Use this method if the site is hosted on a third-party server and its files are available via FTP or SSH, and there is also direct access to the database.
- Open the section «Site transfer to us» and press «Create a request».
- Select tab «Automatic transfer», fill out the form and click «Create a request»:
- «Target site» — a site or subdomain on the hosting, to the directory of which the files will be transferred. Can choose existing or add a new one.
- «Access to source files» — access data to the files of the source site:
- «Connection» — method of connection to the server.
- «Server», «Port», «Login» and «Password» — data for connecting to the server.
- «Path to the root directory of the site» — path to the directory on the server whose contents are to be transferred. If not specified, all contents of the directory available by default when connecting to the server will be transferred to the hosting.
How to indicate the path
For example, when you connect to a server, you get into the directory/home/example
, which contains directories with two sites -example1.com
andexample2.com
, whose files are stored in subdirectorieswww
. In this case, to transfer the site example1.com, the path must be specified asexample1.com/www
. If the path is not specified, both directories will be transferredexample1.com
andexample2.com
.
- «Access to the original database» - access data to the database of the source site:
- «Do not migrate database» — enable if you want to transfer only files without a database.
- «Server», «Port», «Database», «Login» and «Password» — data for connecting to the database.
- «Target database» — a hosting database to which the contents of the source database will be transferred. You can create a new one or choose existing.
- «Site config file» — when transferring a site, the system can automatically search for old database connection settings in the site configuration file and replace them with new ones:
- «Do not change database connection settings» — enable it if you don't know the exact path to the configuration file or you will change it manually.
- «Path to the configuration file (relative to the root directory of the site)» — path to the file in the root directory of the site, where the database connection settings are stored.
- Wait for the completion of the request. The execution status can be tracked in the section «Site transfer to us».
Manual transfer by our experts
Use this method if the site is hosted on a third-party server and you do not have access to its files via FTP or SSH and do not have access to the database.
- Open the section «Site transfer to us» and press «Create a request».
- Select tab «Manual transfer by our experts», fill out the form and click «Create a request»:
- «Target site» — a site or subdomain on the hosting, to the directory of which the files will be transferred. Can choose existing or add a new one. button ➕ You can add several sites to the application at once.
- «Data of the hosting provider from which you need to transfer the site to us» — access data to the server with the source site:
- «Link to control panel», «Control panel login» and «Control panel password» - access data to the control panel on the server (if any).
- «Server root credentials» - access data directly to the server (if it does not have a control panel).
- «More» - additional options:
- «Install a free certificate from Let's Encrypt» - installation free certificate.
- «Set up a redirect from HTTP to HTTPS» - customization redirect to HTTPS.
- «Comment» - any information that is necessary to complete the transfer and help speed up its process (important features of data access, file location, etc.).
- Wait for the completion of the request. The execution status can be tracked in the section «Site transfer to us».
Notes for CMS
Bitrix has built-in backup tools. You can transfer a site using these tools by instructions.