Sites from one hosting to another can be transferred for various reasons, starting with frequent server shutdowns, the excessive cost of provider services and ending with insufficient technical support and many other uncomfortable features.
The most important thing when transferring a site to another hosting service is to perform a “move” with high quality and as quickly as possible, because when you turn off, there is an outflow of regular visitors, which can be difficult to return. Therefore, it is desirable that the work of the resource is not interrupted at all. Next, we will try to disassemble the standard conditions for transferring a site from one hosting to another, since there are many providers that have special settings of the administration panel, the consideration of which will take more than one page.
The whole procedure of transferring a site from hosting to hosting consists of three main stages, each of which we will discuss in more detail:
- Change of addresses of domain names.
- Database transfer.
- Transfer codes of all pages and scripts.
Step 1 is a procedure for changing the addresses of the site domain names to new ones belonging to the “new” provider. These data can be found in the technical support service, and then entered in the administration panel.
Addresses have something like this: ns1.hoster.ru and so on, a total of a maximum of four (usually two). Hoster in the address bar is replaced with the name of the new host. So, in most cases, it is enough to specify only two addresses instead of four, sometimes with ip-addresses, so the address will look like this: ns 1. hoster . ru . 126.96.36.199 (in the place of “188.8.131.52” there will be real addresses).
After that, you can enter the administration panel and, under the line “Change DNS servers”, “Domain settings” or similar, go directly to changing old addresses to new ones. At the end, be sure to press the save button. As a result, the mail will receive a notification letter, which will indicate the procedure that you followed.
We transfer the site database to another hosting. First you need to copy the existing database – site dump. To do this, in the control panel, find the item “Database” or similar, where the link to the tool that manages the site DBMS will be located. There are a large number of such modules, so in the article we will focus on PHPMyAdmin. In this panel, you need to select the name of the required database to save, the entire list of which is located on the left. Then the window of direct DB management will open. Next you need to select the “Export” link and send everything to the archive and click the “OK” button. After that, the save path on the user’s computer is indicated. Now you need to perform the procedure of importing the old database to the new hosting. This procedure is similar to export, through database management,
We transfer the code of pages and scripts to another hosting. To do this, you need to connect to the old resource via ftp protocol using one of the many programs. Next, copy all files from the www folder to your computer, and then you need to perform the reverse procedure for the new provider.
And the final touch in the “big move” of the site is the indication of new data that will allow you to connect to the database in the source code of the old site. Depending on the CMS site, such information may be in a specific configuration file. Here you need to change the password to the database, address, username and site name.