Rewrite file URL