Hip problem

Recently I have been suffering from a recurring hip injury. The problem is, I don't know how to go about recovering from it and strengthening it to stop it happening again. It is an aching pain in the front of the hip, roughly where my leg starts. It can happen in both legs but usually the right. My suspicions are that it is either muscle or tendon related.

Thanks, David.