Move the rear sight in the direction you want the POI to move. If the Point Of Impact needs to move up and right, move the sight up and right
Imagine the gun is in a vise and you fire one round. It makes an off-center hole in the target. Without moving the gun, which way would you have to move the rear sight to get it to line up with the hole in the target? That's how I remember it.