Change rule of links