Razor bumps!!!

I shaved my pubic hair last week and this week I have a ton of large razor bumps. They hurt so bad. The area is irritated. How can I prevent this from happening again? this is the second time it happens. How can I relieve the pain for now?