域名是新网的,按照网上说的办法,做了泛解析。(设置了*.site.com ,IP指定到网站的IP,应该没问题,泛解析成功了吧?)
Ping了一下,ping www.site.com 和 ping xxx.site.com 都能ping通(xxx.site.com ,xxx是我随便写的),都是指向公司的IP,但访问http://www.site.com 正常,访问http://xxx.site.com 却提示“ Bad Request (Invalid Hostname)”。
请问,前面已经做了泛解析,访问http://xxx.site.com 和访问http://www.site.com 不应该都指向同一个页面么,为什么会访问不到呢?
————————————————
请问要想实现这样的二级域名效果:
真实路径:
http://www.site.com/aa.asp
http://www.site.com/bb.asp
用二级域名访问:
http://aa.site.com/
http://bb.site.com/
伪静态规则应该怎么写?
我的ISAPI_Rewrite版本:ISAPI_Rewrite full
我看网上有这么写的:
RewriteCond Host: (?!\.|www|ww)(.*)\.site\.com
RewriteRule http\://(.*?)\.site\.com/ http\://www.site.com/$1\.asp [I,R]
但我这测试不行,提示“ Bad Request (Invalid Hostname)”。
Ping了一下,ping www.site.com 和 ping xxx.site.com 都能ping通(xxx.site.com ,xxx是我随便写的),都是指向公司的IP,但访问http://www.site.com 正常,访问http://xxx.site.com 却提示“ Bad Request (Invalid Hostname)”。
请问,前面已经做了泛解析,访问http://xxx.site.com 和访问http://www.site.com 不应该都指向同一个页面么,为什么会访问不到呢?
————————————————
请问要想实现这样的二级域名效果:
真实路径:
http://www.site.com/aa.asp
http://www.site.com/bb.asp
用二级域名访问:
http://aa.site.com/
http://bb.site.com/
伪静态规则应该怎么写?
我的ISAPI_Rewrite版本:ISAPI_Rewrite full
我看网上有这么写的:
RewriteCond Host: (?!\.|www|ww)(.*)\.site\.com
RewriteRule http\://(.*?)\.site\.com/ http\://www.site.com/$1\.asp [I,R]
但我这测试不行,提示“ Bad Request (Invalid Hostname)”。