BAC-939: Rewrite file URL in all envirnoments