I have downloaded latest version of magento from their website. When i am running it from browser like this localhost/magento it redirects me to www.localhost.com/magento. I am using windows 7 and wamp. All other projects on my localhost are working fine just magento is having this redirect problem.

This problem is occuring in office. I tried it at home on windows 8 using wamp it installed without any problem. 

Do somebody know how can i solve this problem and run magento on localhost??? Please provide me some help