This deleted code was used to do much more than that. We used to rewrite parts of the actual request as well as the headers.

We no longer need it because:
* Yes we now redirect /blog and /roommates before it gets to this code.
* The Wordpress instances now handle changing asset urls to cloudfront.
* The Wordpress instances think their site host is www.apartmentlist.com so the urls they generate automatically have the "correct" host so links don't need to be rewritten.