Page Jump

By default asp.net using redirect, its status is 302, the jump to the search engines is a temporary jump. If we need to be more friendly to search engines, it is necessary to use a jump of 301 in

asp.net using 301 Jump to write code like this:

Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.xxxx.com");
Response.End();
最后一句Response.End()不能省略 :)

Reproduced in: https: //www.cnblogs.com/dotLive/archive/2008/02/14/1068609.html

Guess you like

Origin blog.csdn.net/weixin_33868027/article/details/93765138