Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
The people who are doing optimization are multiplying, who will have a good ranking, we should pay attention to the narrow road details, including the title, description tags, keyword tags, as well as to the keyword layout, location, links (inside the chain), outside the chain, the structure of the site, and so on, today simply say 301 permanent redirect:
The redirect:301 represents a permanent transfer (permanently moved), 301 redirects are the best way to search engine friendliness after a Web page change, and it is recommended that 301来 be redirected as long as it is not temporarily removed.
Now say the procedure:
First type:
IIS implements 301 redirect
* Open Internet Information Services Manager, right-click on the page or directory you want to redirect, see figure below
* Select Redirect to URL
* Enter the address of the target page in the dialog box
* Remember, check "permanent Redirection of resources"
* Of course, finally click "Apply"
the second Apache implementation of the 301 redirect
In Apache, there is a very important file. htaccess, by setting it
Add or modify the following:
Redirect permanent/http://xxx.com/, redirecting content from directory to http://www.XXX.com/
Or the use of "mod_rewrite" technology, in the form of:
Rewriteengine on
Rewriterule ^ (. *) $ http://www.xxx.com/$1 [r=301,l]
To complete the redirection
The third type: Virtual host 301 redirect
If you are not a server, you can use the subdirectory binding to do, first set up subdirectories, and then you have to redirect domain name to this directory, in this subdirectory to create a index.php file, file content:
Header ("http/1.1 moved Permanently");
Header ("location:http://www.xxx.com/");
Exit ();
For example, my small station qqpub.cn use is this method, we visit the www.qqpub.cn/qqpub is also to redirect to the home page, so that is not the server users of the webmaster can not solve the problem, if you do not support PHP, you may use index.asp placed in the directory
The code is as follows:
Response.status= "Moved Permanently"
Response.AddHeader "Location", "http://www.XXX.com/"
Response.End
ASP. NET 301 Redirect
<script runat= "Server" >
private void Page_Load (object sender, System.EventArgs e)
{
Response.Status = "Moved Permanently";
Response.AddHeader ("Location", "http://seo.highdiy.com");
}
</script>
These can play a redirect effect, view site redirection you can go to Seobox view return values
As for the 404 error and other details next time to continue!
So many, this article starts ADMIN5, the time sends the webpage, the laggard person, Chinaz.