That depends on what kind you're using.
Back when I still used plastic hand guards, I glued (using E-6000) two loops of elastic inside them. The rear one goes around your wrist, and the front one around your palm. That keeps it in the right position, is reliable and non-intrusive.
When you have rubber hand guards and rubber gloves, you just glue them on to the glove.