Catalyzes the prenylation of para-hydroxybenzoate (PHB) with an all-trans polyprenyl group. Mediates the second step in the final reaction sequence of plastoquinone-9 (PQ-9) biosynthesis, which is the condensation of the polyisoprenoid side chain with PHB, generating the first membrane-bound Q intermediate 4-hydroxy-3-solanesylbenzoate. 4-hydroxybenzoate + all-trans-nonaprenyl diphosphate = 4-hydroxy-3-all-trans-nonaprenylbenzoate + diphosphate Belongs to the UbiA prenyltransferase family.