I (or rather a girl I really like) is trying to set up a local dev server on her mac. I have XAMPP installed and working. I then downloaded her current site to the local machine and can get the homepage up on localhost/thesite. I was then trying to edit the hosts file to redirect all links from http://www.example.com to localhost/thesite so that she can develop the site locally and then upload when complete (she has a really slow internet connection).
If I add the line:
to the hosts file and then go to www.example.com on a browser I get the XAMPP hompage. That makes sense. But since the local site is really located in localhost/thesite I instead tried:
neither of which worked. it just gave me the XAMPP homepage again when I went to www.example.com in my browser.
When I put the whole site into the root web folder in XAMPP and went to localhost it seemed to go straight to the online page (www.example.com)
any help would be appreciated.
[edited by: travelin_cat at 8:51 pm (utc) on Oct 9, 2010]
[edit reason] Changed example URL to example.com [/edit]