What is the best glue to use to adhere rhinestones to fabric?

I'm trying to embellish and plain tee but I've never done this before and I'd like it to look good and last. I was thinking glue from a hot glue gun but it seems like that would adhere to the fabric well but maybe not so well to the shiny surface on the back of the rhinestones.

What can I use?