Trying to resolve a website domain to localhost for development purposes. I am developing on a Wordpress Installation which has some inherent hardcoded redirects to the domain it is installed on. So I need to be able to resolve the domain it is for to my local environment to do development. I am on a windows machine using WAMP as my development server. I have added this line into my hosts file:
127.0.0.1 localhost 127.0.0.1 www.example.com
This works great when I visit www.example.com I get the expected WAMP application screen. The problem is when I try to visit the Wordpress Installation at www.example.com/blogs, this does not get resolved to my local environment, it takes me to the public facing site.
The strange thing is that this is not a problem on all computers I have it working on an XP and W7 computer. But it is also not working on two other W7 computers and some old computer I am unsure of OS for.
Can anyone provide some insight on what might be happening?
Update - Things that I have tried to avoid the possibility of caching: hard refreshing with Ctrl+F5, manually clearing the browser cache, using multiple browsers, clearing the dns cache with ipconfig /flushdns