Serving WordPress in it’s own directory on localhost on WAMP

You have two alternatives:

  1. Change the DocumentRoot directive in the WAMP httpd.conf file (use CTRL+F to find it). That way you will change the whole root folder of your server, be aware of that!

  2. Create a virtual host that will bind a domain to a particular subfolder in your document root (similar to subdomains logic). Here some article that might help:

https://www.techrepublic.com/blog/smb-technologist/create-virtual-hosts-in-a-wamp-server/

I personally prefer the second option, is better than modify the entire document root. With a virtual host you choose if you want to use the root or a subdirectory.

Be happy!