Anal sex

My partner has been dying to try anal with me. We’ve both done it before with other people, but for me it hurt so bad. Even sex with other people hurt and it never hurt with him even in the beginning. Any tips on how to do it so it won’t hurt?

Plus, first time I did it I had such bad gas and couldn’t go to the bathroom for a while without it killing me. Is that normal?