301跳转代码求帮助

shrnt 2010-09-07 03:04:06
比如:http://www.test.com/1.asp?id=123
301跳转以后变 http://www.test.com/123.html



请问这个1.asp的301跳转代码怎么写?
...全文
44 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
猜我是几娃 2010-09-07
  • 打赏
  • 举报
回复
1.asp这么写


Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.test.com/"&Request.QueryString("id")&".html"
猜我是几娃 2010-09-07
  • 打赏
  • 举报
回复


Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.test.com/123.html"

28,408

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧