简单问题关于"Href":在线
应用服务器resin,环境:win2000
虚拟路径:websrc
部分代码如下:
<a href="www.sina.com.cn">sina</a>
问题描述:/websrc/www.sina.com.cn was not found on this server.
应用服务器会在前面补虚拟路径
用<a href="http://www.sina.com.cn">sina</a>就没有这个问题
要求:
1。有什么方式可以让“www.sina.com.cn”能正确链接到sina中?
2。把“www.sina.com.cn”构造成"http://www.sina.com.cn" 这种类似的方法,谢绝
3。虚拟路径不能改
4。请大虾给出测试过的方法