AJ Allmendinger has signed a multiyear contract extension with Richard Petty Motorsports to drive the No. 43 Ford.