We all know that if the old site is operating for many years, if more domain names will bring us a very small loss of the site, for example, the site traffic No, the weight of the site did not, the site keyword rankings are not, nature of this site can not bring their own customers, so we do not agree with the site to change the domain name arbitrarily, But if one day you for various reasons to change the site domain name, how should do? is reluctantly helpless to the original site completely discarded, or should want to find a way to see what remedial measures can save some loss?
Of course, we should think of ways, of course, there are ways to think, although this method can not guarantee to make up for the loss of hundred percent, but the total abandonment of the original site is not as good as much, so specific should take what remedial measures to drag it?
The first step: the first to prepare the old site all the information, including the site source code, website database, etc.
Step two: Buy a new virtual host, then upload the source code for the old site and restore the database
Step three: Point the newly purchased domain name to the newly purchased virtual host
Note that the directory structure of the document uploaded to the first three steps is consistent with the old site, and do not change
Fourth Step: Modify the original virtual host of the root directory under the default document, that is, the original old site's homepage, For example, index.html or default.asp, this default document for 301 redirect, how to do 301 redirect here only ASP site as an example of how to do redirection, open the default document to delete this recognition document all the code and add 301 redirect Code, note that this default document must If the ASP document, and not static, such as index.html, static documents can not be 301 redirect processing, the specific redirection of the code is as follows:
The following are the referenced contents:
<%@ Language=vbscript%> <% Response.status= "Moved Permanently" Response.AddHeader "Location", http://www. Your new domain name/ %>
|
So why do 301 redirects? The reason for this is as follows:
1: Can open the old domain name of the site directly jump to the new domain name
2: Tell the search engine domain name has been replaced, so that the search engine more friendly
3: Transfer the weight of the site, the original weight of the site can be transferred through the domain name part of the jump
Fifth step: All other Columns page including content page of ASP documents are all 301 redirect processing, then the column page to do 301 redirect processing, here also to ASP's website a column for aboutus.asp document as an example
1: Delete the original code below aboutus.asp,
2: Add the following code
The following are the referenced contents:
<%@ Language=vbscript%> <% Response.status= "Moved Permanently" Response.AddHeader "Location", http://www. Your new domain name/aboutus.asp %>
|
If your site used to generate static features and search engines and included all of you are static page then how to deal with it? Here is an example of a static page with the name 1.html stored in the root directory.
1: Also keep the original old site static page
2: Delete the contents of each static page (note Delete the contents of the static page rather than delete the static page)
3: Add each static to the following code: (This assumes that there is a static document below the root directory of the Web site 1.html
The following are the referenced contents: <meta http-equiv= "Refresh" content= "0; Url=http://www. Your new domain name/1.html "> |
But if you have more static pages, will be more trouble, one page of a page modification, but in order to be able to better do the new and old domain name handover work to ensure that the flow does not lose too much, to ensure that the weight can be transferred smoothly, to ensure that the ranking of the new site can be as the same as the former, then trouble Of course, if you have thousands of them, you can try a batch substitution, but believe that after you've done the above steps, then give your new site every day to add one or two pieces of fresh high-quality original articles, then do not wait long, not more than one months, your new site can restore the original old site traffic, Weights and rankings.