Ride until you are tired, rest a day then ride again. Develop a starting point after a week or so of this routine and try to increase mileage each week (not every ride).
Telling us what type of bike (road, hybrid, mountain etc) you have may also give us a bit more info as well as your current shape (are you in good shape, that is).
Riding really is not a science unless you want it to be. Think like a kid and just get on the bike and have some FUN !