2013-03-19 118 views
0

我开发了多个站点,因此我为每个站点都有一个文件夹用于例如。对于www.firstsite.com 本地主机/ secondesite 本地主机/ firstsite为www.secondsite.com编辑主机文件将www.somesite.com重定向到本地主机/ somesite

我想的主机文件,当我键入如webaddress重定向到指定的文件夹。

当我输入www.firstsite.com它应该去localhost/firstsite。

+0

请描述你所使用的机器。你在Apache上提供这些文件吗?请更具体一点。 – 2013-03-19 12:41:07

回答

0

尝试像下面......它会帮助你..

进入IIS管理器inetmgr

添加一个新的网站

enter image description here

创建一个网站如下所示:

enter image description here

创建第二个站点象下面这样:

enter image description here

现在www.firstsite.com会重定向到localhost/firstsitewww.secondsite.com将重定向到localhost/secondesite

相关问题