1) Guitar -> DI-box -> Interface and amp (two different cables). The amp is just for monitoring your playing
2) You record the DI guitar signal (the one that goes into your interface directly), but you don't mic the amp at all yet.
3) When you have tracked all DI-guitars, you then play all the DI guitars one at a time in the DAW project
4) You also take the DI signal back to your amp through a reamping box
5) Now, you record like you would record normal guitars - except that you don't need to play the guitar (or the guitarist doesn't need to, if you're not playing yourself)
The advantages are:
- You don't need to play everything again if you decide you don't like the guitar tone
- You can adjust the amp as long as you want, whenever you want
- You can record your guitars wherever you want (by the beach, in your attic, in an abbatoir, in a dungeon, etc) and then record the actual final guitar sound in a studio
The disadvantages are:
- Small drop in the high frequencies, but then again there usually is a LPF anyways on the guitars
- You need some extra equipment (DI-box & Reamp box -- or a reamp box with DI included)
- If a part changes/you want to add some small things into a riff, you still have to re-record it
- You have to be extremely careful with the intonation and tuning on the guitars, in case you record in different places
But overall the advantages overcome the disadvantages by a nice margin.