Determine the design and spacing for your upright handrail supports. Check your local building codes for the specifics on what is permitted in your area. Most railings must have vertical supports spaced no more than 4 inches apart, and must be oriented vertically so that children cannot climb up the supports. For purposes of explanation, these instructions are for a 10 foot length of stairway railing at an incline of 10 degrees, with a total railing height of 40 inches.
Cut your rebar into 39 inch lengths to correspond to the height of the hand rail, using an angle grinder.
Drill holes along the bottom rail of your staircase railing. These are insertion points for the rebar. Space the holes no more than 4 inches apart and drill vertically into the base of the railing, not perpendicular to it, as the stairway is angled.
Drill corresponding holes in the underside of your hand railing. These holes need only be 1/2 inch deep, to hold the ends of the rebar in place. The spacing and angle of the holes should correspond to the holes drilled in the base of the railing. Use a 4-foot level to assure the holes are aligned vertically.
Place the ends of your cut rebar into the holes you have drilled in the base of the railing, then fit the upright ends into the corresponding holes drilled into the underside of your wooden handrail. As rebar is somewhat flexible, you'll want to add a structural support, called a newel post, at either end of the railing. If the rebar pieces are loose, add a drop of silicone into the hole.
Paint the rebar sections. Whether used indoors or out, rebar will rust over time if left untreated. Paint using a rust inhibiting paint.