There's no single best way to microphone an acoustic guitar. You're the only one who can find the sound that you want.
Tests with two microphones here.
Both condensor and dynamic microphones work well for recording the sound. A third type of microphone called piezo, which is designed to record vibrations of the surface it is mounted to, can be installed onto the body of the guitar.

