问:ASP如何实现没有www的网址跳转到有www的网址?
[P][SIZE=9pt]咚啦啦,在网站首页头部写入下面一段代码即可实现:[/SIZE][/P][P]<%[/P][P]ifrequest.ServerVariables("SERVER_NAME")="kwhzj.com" then[/P][P]Response.Status="301 Moved Permanently"[/P][P]Response.AddHeader "Location","http://www.kwhzj.com"[/P][P]Response.End[/P][P]end if[/P][P]%>[/P]