When did the problem start? This is not an easy thing to fix. First, get your posture evaluated:
1) Loss of lumbar lordosis.
2) Twisted hips.
3) One hip higher than the other.
4) More weight on one leg than the other.
5) Internal rotation deficit in one leg.
It is sad but not many who can do this.
Then do appropriate exercises to fix you posture.