It's generally considered a best practice to serve static content, such as images and css, from different sub domains (images1.domain.com, images2.domain.com, etc). I've seen this discussed in detail in various places, however I'm concerned about the general logistics of this in terms of maintainability.
Our site has thousands of pages and changing all references to static content from relative to absolute links pointing to different sub domains sounds like a nightmare, what are some general approaches to accomplishing this? Is there any way to automate this, perhaps with a server that sits in front of the web server and rewrites incoming requests to point to different sub domains? Are there any frameworks built with this in mind? Is the performance gain worth the added complexity and maintenance costs?
EDIT: Our environment is ASP.NET 3.5 SP1 on IIS 7.