You will also have to use a word processor and change the links found in your sql database to the new url. Via a global search and replace. Otherwise there will/may be resources which do not load.