Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
We all know that if the old site is operating for many years, if more domain name will bring our site a very small loss, 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, such as index.html or default.asp, this default document is treated as 301 redirects, specifically how to do 301 redirect here just for example, ASP site for a redirect, open the default document all the code before deleting this document and add 301 redirect Code, note that this default document must be ASP's documentation, and Can not be static, such as index.html, static documents can not be 301 redirect processing, the specific redirect code as follows:
the following references:
<%@ Language=vbscript%>
<%
Response.status= "Moved Permanently"
Response.AddHeader "Location", http://www. Your new domain name/
%>
So why do 301 redirects? The reasons are 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 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 references:
<%@ 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 instead of deleting the static page)
3: Add each static code as follows: (This assumes that there is a static document below the root directory of the Web site 1.html
the following references:
<meta http-equiv= "Refresh" content= "0; Url=http://www. Your new domain/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 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.