Motivated by the noncovalent binding of polypeptides to DNA, the adsorption of a flexible polymer to a rigid periodic copolymer is studied in two dimensions and three dimensions. The fraction of adsorbed monomers, the specific heat, and the Binder cumulant are analyzed and compared with analytical results for an ideal chain. As the interaction strength increases, a second-order phase transition occurs from a nonadsorbed state to an adsorbed state, in two dimensions, and a higher-order transition occurs in three dimensions. The transition point is estimated as for and for , where is given in units of . The dependence of the number of adsorbed monomers on the chain length of the flexible polymer shows a power law scaling relation , with for , respectively. We also find an optimal for the winding of the flexible polymer around the rigid one in three dimensions. Compared to the adsorbed monomers, the successive nonadsorbed monomers contribute more to the winding. When the interaction is strong, , the winding value or the number of winding turns of the flexible polymer becomes linearly dependent on the chain length.