We all have experienced things that happened to us that didn't make us feel good. But the difference between people who are happy and healthy and those who are miserable and bitter is that happy people don't internalize or create a meaning about themselves based on a particular rejection.
It is best to look at rejection as an opportunity for something else, something better, waiting just around the corner.
Resist the temptation to blame or hate the person who rejected you (yes it is hard but it is also possible), even if he or she wasn't nice about it.
Find a way to wish that person well instead, you may not realize it in the moment, but that person is actually an angel in disguise, leading you in the right direction by putting an end to the path you were on.
See it as a divine redirection instead, to learn more about improving your self-esteem and stepping into your full potentials.
At the end of the day you choose how you see rejection; as a stepping stone to newer and better horizons or as a stumbling block that keeps you imprisoned in the past, which will you choose?