WAMP - Remove localhost from project URL

前端 未结 16 1713
暖寄归人
暖寄归人 2020-12-02 11:01

The URLs of my projects in WAMP are not resolving as I\'d expect. For example, I\'d expect the project in the folder c:\\wamp\\www\\project1 to have the URL http://project1/

16条回答
  •  广开言路
    2020-12-02 11:31

    In your www folder open index.php at line 30. Here, change $suppress_localhost to be false. So, it is should look:

    $suppress_localhost = false;
    

    That was the quickest and easiest fix for me. I'm using 64 bit Wamp.

提交回复
热议问题