The normal position for both direct and indirect pronouns is immediately before the verb:
-Je te connais, tu sais. -Non, ce n’est pas vrai. Tu ne me connais pas.
-Ils ont vendu leur maison? -Non, ils ne l’ont pas encore vendue.
Nota bene:
-When the verb is an affirmative imperative (a command to do something), object pronouns follow the verb. Note the hyphen.
écoute-moi bien !
–Me and te change to moi and toi when placed after the verb, except when followed byen.
écoute-moi bien ! lève-toi ! va-t-en !
-With a negative imperative (a command not to do something), object pronouns adopt their normal form and their usual position, before the verb.
ne m’oublie pas, je t’en prie !
Michele est malade. Ne lui faites pas de bêtises !