I have a website running on let's say: www.example.com

On my local WAMP installation, I have the same website Cloned with GIT. The address is localhost/www.example.com

Drupal is installed, and always goes to localhost/ instead of localhost/www.example.com/

Is there a way to make a local 'redirect' from 'example' to 'localhost/www.example.com/'?
A bit like localhost is handled in the hosts file...

Thanks in advance!