Rewrite URLs in files per environment.