Last update at :2024-06-14,Edit by888u
Due to various reasons, we may need to give up the original domain name, but we need to keep the original data. Many people may directly delete the original domain name and rebind a new domain name. In fact, this approach is inappropriate. After all, we have spent more time and energy maintaining the old website. The website has a certain weight. Can we reduce the loss to the lowest point and move it to a new domain name? ? Snail received a notice from a merchant early this morning, saying that a domain name I used contained their keywords and that we needed to change it within a time limit. He would not argue with it and just change it.
The first step is to bind the new domain name to a separate space
Generally, we use VPS or virtual hosts that do not limit the number of sites to build, and try to keep the original IP unchanged. I will create a new domain name site under the VPS host with the same IP of the old site, so that we can Make sure that the original site IP remains unchanged, because frequent changes to the site's IP will also be affected.
The second step, copy the data to the new site
Copy the website files and database from the old site to the new site. In fact, you only need to move the files to the new site. Because I am using the WORDPRESS program, I modified 2 URLs in the database to new addresses. Secondly, I used batch replacement content to change the old URL addresses involved in the content to new URLs.
The third step, resolve the new domain name and check the path
We need to resolve the new domain name to the IP, and then wait until it takes effect to check whether the site can be opened and whether the data and the like remain the same as the original site.
The fourth step, the old site is 301
This is more important. We need to keep the original path unchanged, instead of all jumping to the homepage of the new site. For example, www.olddomain.com/url/ also needs to jump to www.newdomain.com. For an address like /url/, we need to set 301 for the whole site. You can replace the .HTACCESS file under the old site with
RewriteEngine onRewriteRule ^(.*)$ https://www.laozuo.org/$1 [R=301,L]
*Please change the above URL laozuo.org to the address URL of your new site, so that we can achieve site-wide 301.
Step 5: Keep the new site updated
We need to keep the new site updated and have appropriate external links in the near future, so that search engines know that we have changed to a new address, and to let users know that we have changed to a new address, we need to tell users the new address in a prominent place on the website. URL, if there is any need to exchange links, contact the other party to change it.
In this way, through five simple steps, the old domain name can be replaced with a new domain name, and the weight loss rate of the website can be reduced to the lowest point.
Recommended site searches: foreign server vps, domain name registration query, PHP space application, Hong Kong virtual host space, view IP address, domain name registration query, dynamic vps instant IP replacement overseas host, station group server rental, com domain name registration, < /p>
发表评论