After years of frustration that came from not being able to get the thick sound I desired out of my distorted electric guitar tracks, I began miking my giutar coming out of small amps. And then I will often double it or triple it or even record 12 tracks--compressing it over and over until I get it to sound thick thick thick. Simetimes I use a compressor going into the board, sometimes afterward, in the mix.
The key for me is the small amp. I can get
a Fender Champ to distort on its own and then I don't disrupt the neighborhood and I get a real organic distortion at the same time. And in the mix, these tracks don't eat up as much space, which makes more room for little riffs and girls going "la la la" in the background.
I always mic the guitar amp, I never go direct. Going direct isn't a sin or anything, but for the kind of sound I like, which is more of a classic rock tone, it just makes more sense for me to go out an amp and into a mic.
It's just one way to go and it gets a certain sound that may or may not be what you want. I certainly record electric guitar in other ways as well, but that's my favorite way to do it.