You could do this to fix the relative links issue:
download your website via ftp
open all the pages of you website in notepad++
go ctr+f then in the find field enter your first domain and in the replace field enter you second domain then click replace in all documents. Save and exit.
reupload the pages via ftp
Success