How do I programatically 301 redirect in an asp page?

后端 未结 1 571
無奈伤痛
無奈伤痛 2020-12-11 11:17

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 cm

1条回答
  •  独厮守ぢ
    2020-12-11 12:04

    Response.Buffer = true
    Response.Status = "301 Redirect"
    Response.AddHeader "Location", "redirection-url-goes-here"
    Response.End
    

    0 讨论(0)
提交回复
热议问题