Web site replace new domain name

Source: Internet
Author: User
Tags vps

First step, bind the new domain name to a separate space

Generally we are using the VPS or not limit the number of virtual host, as far as possible to keep the original IP unchanged, my side in the old site with the IP VPS host under a new domain name site, so that we can ensure that the original site IP unchanged, because the site frequent replacement of IP will also be affected.

Second step, copy the data to the new site

The old site under the site files and databases copied to the new site, here in fact only need to move the files to the new site. Because I am using a wordpress program, so in the database to modify 2 URLs for the new address, and secondly, I use the bulk of the content to replace the content of the old URL to the new address.

The third step, parsing the new domain name check path

We need to resolve the new domain name to the IP, and then after the effective check whether the site can be opened, data, such as whether to maintain the same as the original site.

The fourth step, the old site full station 301

This is more important, we need to keep the original path unchanged, not all jump to the new site home page, such as www. com/url/also need to jump to www. new domain name. com/url/such address, we need to set the whole station 301. Can put the old site under the. Replace the htaccess file with

Rewriteengine on
Rewriterule ^ (. *) $ http://www.laozuo.org/$1 [r=301,l]

* Note To modify the above URL laozuo.org for your new site address URL, so we can achieve the full station 301.

Fifth step, keep the new site updated

We need to keep new site updates and appropriate links in the near future, let the search engine know we replace the new address, as well as let the user know that we replace the new address will need to be in a significant location on the site to tell the user the URL of the new address, if there is a need to contact the Exchange link replacement.

In this way, through a simple five steps, you can complete the old domain name to replace the new domain name, and the weight loss rate of the site down to the lowest point.

Yu Ze qq:180349075

Web site replace new domain name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.