Try to not strain during BM's. Take some stool softener before bed. Like emily123 said, drink lots of water, 6-8 glasses. Eat plenty of fruits and vegetables. Avoid alcohol and caffeine. Don't do any heavy lifting. Wipe with moist towelettes or similar product. Use ibuprofen or acetaminophen for pain.
Try some herbal supplements to help resolve your issue and for prevention. Witch Hazel, Butcher's Broom, Bilberry, Ginger, Bioflavinoids, Stone Root Tincture....these are just some things that might help. Vitamin E and Fish oil capsules may also improve or prevent recurrences.
Try to lower your stress level. When you can, get some excercise. Try to at least walk around the block when you can. Yoga, Tai Chi and Qi Gong are great stress reducing activties and excercises.
Good Luck!