That should work. Do you have the correct root folder setting? Is it possible it is also adding or removing the www. in the front so that has to be changed as well? Can you export and attach the site definition you are using so I can try? Add it as a private attachment and only I can download it.