All the accused have been arrested, a police official said.
The incident took place at Dhaneda village when the woman was allegedly raped by her family members -- father, brother and two uncles -- a few months after she eloped with her boyfriend, the police said.
According to station house officer (SHO) Kushal Pal Singh, the police yesterday registered a case against all the accused on the directive of the Allahabad High Court.
The woman had eloped with her boyfriend a few months ago, the police said.
She was produced before a magistrate who recorded her statement in which she has supported her complaint, they said.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.