The former Millwall frontman failed to make an impact at the City Ground following his move to the club in December 2004 and made only five starts for the Reds.
Gillingham moved to capture Harris after losing Steve Claridge to Bradford City on Friday.