我开发了多个站点,因此我为每个站点都有一个文件夹,例如。 localhost / firstsite为www.firstsite.com localhost / secondesite for www.secondsite.com
当我输入例如。
的webaddress时,我希望主机文件重定向到特定文件夹当我输入www.firstsite.com时,它应该转到localhost / firstsite。
答案 0 :(得分:0)
尝试如下......它会帮助你......
转到IIS管理器 inetmgr
添加新网站
创建如下网站:
创建第二个网站,如下所示:
现在www.firstsite.com
将重定向到localhost/firstsite
,www.secondsite.com
将重定向到localhost/secondesite