2012-11-24 120 views
0

我有一個網站運行讓我們來說吧:www.example.com本地網站重定向

在我本地的WAMP安裝,我有同一個網站克隆與GIT。地址爲localhost/www.example.com安裝

的Drupal,並總是可以爲localhost /以代替localhost/www.example.com/

有沒有辦法從讓本地「重定向」 'example'改爲'localhost/www.example.com /'? 有點像本地主機在hosts文件中處理...

在此先感謝!

回答

0

後的尋找sollution小時,我找到了答案!

用戶virtualHosts http://cesaric.com/?p=255

Now 'http://example' is virtualhost for 'http://localhost/www.example.com/' 

很不錯:)