You may have to go in and change all of the links by hand. When you do, make them really relative links, relative to the base site, not to an absolute address that refers to the server.
These tutorials may be of some help:
I think that the second on refers specifically to the issue that you've found.