You get the segment mileage (including a 500mile minimum) UNLESS you have booked a "direct" flight. In this case (a flight with the same number booked through an invisible intermediate city), you would only get the actual mileage between the origin and desination. In this case it is best to book separate segments.