I'm working on as asp.net application. The application is reasonably large and involves lot of pages with many reference images and scripts. I have hosted such content on a cookie-free sub-domain.

My problem is - I have to manually update the path for all images and scripts upon deployment, by making them absolute-references to cookie-free domain content from relative-references of actual domain. **How do I automate this ?** Has anybody done this ?

StackOverflow also uses cookie-free domain for various images on the site. Here's example upvote image which loaded from **<http://sstatic.net/so/img/vote-arrow-up.png>**

[alt text http://sstatic.net/so/img/vote-arrow-up.png](http://sstatic.net/so/img/vote-arrow-up.png)