WAMP: Missing http://localhost/ in urls , wrong wamp projects links

后端 未结 12 2219
野趣味
野趣味 2020-12-03 03:56

I have a problem with Wamp which never happened to me before, cannot find what\'s wrong. I have a few projects located in my www folder ( running windows 7 ).

My ho

相关标签:
12条回答
  • 2020-12-03 04:08

    You can update "urlAddLocalhost" variable in "wamp64/wampmanager.conf" file to on/off. By default it is "off".
    My wamp version is 3.0.6.

    urlAddLocalhost = "off" 
    

    0 讨论(0)
  • 2020-12-03 04:10

    For the latest versions on Wamp, the file has changed the code as follows:

    $suppress_localhost = ($wampConf['urlAddLocalhost'] == 'off' ? true : false);
    

    So it is now configurable from the Wamp Aestan Tray menu.

    For Wampserver 3.0.6, I was able to do this by the following:

    1. Right click on wamp icon on tray on the right.
    2. Go to "wamp settings"
    3. Enable "Add localhost in URL"

    If you see the green tick mark, it is enabled. Now refresh your localhost home page and check URLs.

    0 讨论(0)
  • 2020-12-03 04:10

    Although its not a problem. Linking been disabled by Wamp Devs. Check this article link, its well written and explained the matter.

    WAMP - Remove localhost from project URL

    0 讨论(0)
  • 2020-12-03 04:13

    I prefer the end-user way to change wamp's behaviour. Right click on WAMP notification icon -> Wamp Settings -> Add localhost in url.

    0 讨论(0)
  • 2020-12-03 04:14

    No need to open and edit www/index.php. Just write click on wamp icon => go to wamp settings => then look for "Add localhost in url

    0 讨论(0)
  • 2020-12-03 04:19

    Right-click on the wamp icon then go to the Wamp Setting => Add localhost in url

    0 讨论(0)
提交回复
热议问题