Taking it easy is a good idea. Staying off the bike completely didn't work too well for me.
I found that light exercise (including cycling), stretching, and wearing a thigh sleeve worked best. I also iced the leg at least twice a day and directly after exercise. I did try PT first but my inexperience with hamstring problems and some bad PT resulted in a case of piriformis syndrome.