This question has been answered by paulp. See the first response.
If you've move this from viewing it on a temp URl you need to edit the core >> config file to correct the paths, is also a good idea to run setup in upgrade mode.
I'm now going to hit my head against the wall repeatedly.That might hurt
I'm now going to hit my head against the wall repeatedly.That might hurt