See diagram pls.
Square is also a rectangle. It is possible to do in Eight ways as shown there for a square shape. For a rectangle, same divisions are applicable.
For a rectangle of specific dimensions like 3 n x 4 n (ie., 3 cm by 4 cm or 9 cm by 12 cm), we can divide in two ways at least as shown.
for a rectangle of specific dimensions like 2 n x 4n, (ie., 2 cm by 4 cm ) we can divide it in 4 equal parts as shown in the figure. That is another two ways.