Prioritize media rewrite over link rewrite.