天天看點

wampserver可以打開localhost但是無法打開項目的解決方法

問題描述:新裝的 wampserver ,打開 localhost 之後,發現無法打開自己的建的項目;

解決方法:    找到  wamp  檔案夾 

                      在  wamp  檔案夾中找到  www 檔案夾

                      打開之後找到  index.php  檔案

                      使用文本編輯器打開

                      将 338 行 的代碼: $projectContents .= '<li><a href="'.($suppress_localhost ? 'http://' :

                                       改為:$projectContents .= '<li><a href=" target="_blank" rel="external nofollow" '.($suppress_localhost ? 'http://localhost/' :

                      儲存退出即可,測試可以通路