Prince Prince - 7 months ago 32
PHP Question

WAMP Server can not direct to the home page

Recently I installed wamp server to set up a server environment in a Windows machine. Everything works great, but I have a little problem.
If I am working on a project named

, I can access the project by going to
When I create a link to go to the root(
<a href="/">Go to the root test</a>
, I am directed to
instead of

Is there any way for me to solve this problem ?

Thank you for providing your help.


Perhaps I'm oversimplifying, but the root is just localhost and a link specified as href="/" will always take you there. To link to the localhost/test directory, which is not your root directory it's href="/test"