The choice of inexpensive virtual host is a science, choosing the best host on a different virtual host is also a painful process, because different Web sites rented virtual host or server performance varies, so you will encounter a Web site from one host to another host, I introduce the security migration tips today, To avoid unnecessary losses caused by the relocation of the website.
1, the migration of new host detection
Under normal circumstances, should first test the new host IP address is safe, detect whether it is included in the spam list, whether the search engine screen, whether there are other illegal web sites, through telecommunications, netcom, foreign and other different lines can normally access the host IP address, Do not migrate sites to insecure, unreliable host IP.
2, the development of the relocation plan
Develop a detailed and systematic site migration plan, save the original site content for at least half a month (but not necessarily update), preferably retain more than one months, because many search engines will cache DNS, so that the search engine use the original IP address can still access content. If you inadvertently delete the original site content, will cause the return of 404 error to the search engine, resulting in unnecessary losses.
3, the implementation of the relocation work
Keep the original site unchanged, the original content of the site, database, server settings, etc. are copied to the new host, by modifying the local Hosts file (domain name designated as a new IP address) to test access to the new host is working properly, if the test new host everything is normal, you can make changes to the domain name resolution.
4, the modification of domain name resolution
Try to avoid migrating a Web site by modifying the DNS (Domain Name server) server address, preferably by modifying a record, and modifying DNS requires a consumed after parsing takes effect and may be interrupted in the middle. Modifying A records is a bit more reliable.
At this point, the entire site's migration work is completed, remember that the original content of the site must be stored in the original IP address for some time, I have tested, some search engine crawler in the switch after the IP half a month will also visit the old IP address.