2013-03-19 65 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

相關問題