President Barack Obama on Friday rejected his transportation secretary 's suggestion that the administration consider taxing motorists based on how many miles they drive instead of how much gasoline they buy .