Fix header redirect for invalid file access.