帮忙写一个ASP的3.1转向

来源:百度知道 编辑:UC知道 时间:2024/06/08 06:28:01
由于我之前网站是动态页面 ,最近需要跟换为动态页面,因此需要做301转向
大致是这样的
原有文章链接举例:http://www.fly-space.cn/article.asp?id=240
需要转向成:http://www.fly-space.cn/article/240.html
注意这里后面的地址还不可以访问 其中240为文章ID
非常感谢~~
晕 不小心打错字 是301转向 囧哦···

if uri = Request.ServerVariables("Url")="/article.asp" then
id = request("id")
if id <>"" then
url = "http://www.fly-space.cn/article/"& id & ".html"
Response.Status="301 Moved Permanently"
Response.AddHeader "Location",url
Response.End
end if
end if

转向角度传感器