{"id":20096,"date":"2017-09-14T13:41:47","date_gmt":"2017-09-14T21:41:47","guid":{"rendered":"http:\/\/yummy-wakame.com\/?p=20096"},"modified":"2017-10-27T21:00:26","modified_gmt":"2017-10-28T05:00:26","slug":"how-to-fix-wamps-missing-localhost-in-urls","status":"publish","type":"post","link":"https:\/\/yummy-wakame.com\/weblog\/2017\/09\/how-to-fix-wamps-missing-localhost-in-urls\/","title":{"rendered":"How to fix WAMP&#8217;s missing localhost in URLs"},"content":{"rendered":"<p><em>Applies to: WAMPSERVER 3.0.6 64-bit<\/em><br \/>\nYou&#8217;ve probably run into this problem a bunch, where you have a few projects located in the www folder, and when you go to http:\/\/localhost\/ or http:\/\/127.0.0.1\/ and click on your project name it just points to http:\/\/mysite\/ instead of http:\/\/localhost\/mysite\/. Super annoying to be manually typing it in every time. But with the latest version of WAMP Server (3.0.6 at the time of writing this, there&#8217;s a setting you can turn on to easily change this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20097\" src=\"https:\/\/yummy-wakame.com\/weblog\/wp-content\/uploads\/2017\/09\/wamp-localhost-settings.png\" alt=\"\" width=\"580\" height=\"440\" srcset=\"https:\/\/yummy-wakame.com\/weblog\/wp-content\/uploads\/2017\/09\/wamp-localhost-settings.png 580w, https:\/\/yummy-wakame.com\/weblog\/wp-content\/uploads\/2017\/09\/wamp-localhost-settings-300x228.png 300w, https:\/\/yummy-wakame.com\/weblog\/wp-content\/uploads\/2017\/09\/wamp-localhost-settings-540x410.png 540w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<p><strong>It is now configurable from the Wamp Aestan Tray menu.<\/strong><\/p>\n<ol>\n<li>Right-click on wamp icon in your system tray on the right.<\/li>\n<li>Go to &#8220;wamp settings&#8221;<\/li>\n<li>Enable &#8220;Add localhost in URL&#8221;<\/li>\n<li>If you see the green tick mark, it is enabled.<\/li>\n<\/ol>\n<p>Now refresh your localhost home page and check URLs. It should be working perfectly.<\/p>\n<p><strong>In older versions of WAMP:<\/strong><\/p>\n<p>Open wamp\/www\/index.php<\/p>\n<p>Change this line:<\/p>\n<pre><code>$suppress_localhost = true;\r\n<\/code><\/pre>\n<p>To :<\/p>\n<pre><code>$suppress_localhost = false;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Applies to: WAMPSERVER 3.0.6 64-bit You&#8217;ve probably run into this problem a bunch, where you have a few projects located in the www folder, and when you go to http:\/\/localhost\/ or http:\/\/127.0.0.1\/ and click on your project name it just points to http:\/\/mysite\/ instead of http:\/\/localhost\/mysite\/. Super annoying to be manually typing it in every [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":20173,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[394,235,237,238,299],"tags":[],"class_list":["post-20096","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-nifty-hacks-and-tips","category-web-design","category-web-development","category-website-hosting"],"_links":{"self":[{"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/posts\/20096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/comments?post=20096"}],"version-history":[{"count":0,"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/posts\/20096\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/media\/20173"}],"wp:attachment":[{"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/media?parent=20096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/categories?post=20096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yummy-wakame.com\/weblog\/wp-json\/wp\/v2\/tags?post=20096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}