Rabies transmission primarily occurs through infected animal bites, but scratches pose a risk if contaminated with saliva.