So, I love Wamp. It’s great for development. The only downside is that in wamp, I have to code everything to use “localhost/projectname/” as a base, but on my actual site, everything has the base of just “/”.
Is there a way to use wamp where it treats localhost has your website url?
I’m editing my httpd.conf file and append a virtual host at
the bottom of it (in the dedicated lines) each time I want to add a
new local website :
And I tell windows to point the local host address (127.0.0.1) from
the hostname that I defined (fakesite in the example):
note : you’ll need to restart wamp after edition config files.
This way and if everything went right you’ll just need to type
fakesite/xxxto reach the following physical folder :c:/wamp/www/fake/xxx