Shaving help!

I shave my legs and use moisturizer, but I have these red dots after! They flame up in the sun (not itchy or anything) but they become all blotchy and I feel so insecure about them because it looks like a rash... anyone have any tips on how to stop this from happening??