Hi,
That is quite right. Every link would have to be changed. What i would go ahead and do is change the asset URL's, or the CSS, JS and other image URL to use the CDN URL in the php script. That way it can automatically change globally.
Thanks,
Uploadchest.com