Take your shoes off when you get home. Set them on a doormat in a well-ventilated area outdoors or near an open window.
Fill a spray bottle with 4 ounces of white vinegar and 4 ounces of water. Spritz the inside of the shoes with the diluted vinegar to kill odor-causing bacteria and to get rid of the smell. Allow the shoes to sit on the doormat for one to two hours.
Move your shoes to the closet.
Remove the existing shoe odor trapped in carpet fibers by sprinkling baking soda over the carpeting in your closet. Leave the baking soda on the carpet overnight to absorb the shoe smell. Vacuum the carpet the next day to remove the baking soda.
Cut a pair of nylons at the knees. Fill the foot of each nylon with cedar wood chips.
Knot the nylons to prevent the chips from falling out. Place the cedar wood-filled nylon sachets in your closet to deodorize and to add a fresh scent.