I'm upgrading some classic asp pages to .net, but not all of them. Rather than go and modify all the links in this backwards system, which pulls some of its links from a cms data store. I would like to take advantage of http and just remove the code our of that file, and perform a programatic 301 so that all the other pages can just be upgraded piecemeal.
我正在将一些经典的asp页面升级到.net,但不是全部。而不是去修改这个向后系统中的所有链接,它从cms数据存储中提取一些链接。我想利用http并删除我们的文件代码,并执行一个程序设计301,以便所有其他页面可以只是逐步升级。
1 个解决方案
#1
Response.Buffer = true
Response.Status = "301 Redirect"
Response.AddHeader "Location", "redirection-url-goes-here"
Response.End
#1
Response.Buffer = true
Response.Status = "301 Redirect"
Response.AddHeader "Location", "redirection-url-goes-here"
Response.End