improve redirect & normalize file location