i'm not sure the two are connected, but i don't know your entire design. you can
simply move the data to a new site (probably stsadm.exe -o backup -url
http://web/sitecollection -filename c:\test.bak) and restore to new URL. then,
turn on publishing feature at site collection and again on the site.