For mileage in serving and executing writs, official notices, rules, decrees, orders or processes, or copies thereof, or performing the duties or services specified in this act or authorized by law, the sheriff shall receive and may tax as official costs the mileage fee as established by section 1 of the act of July 20, 1979 (P.L. 156, No. 51) , entitled "An act establishing a uniform mileage fee for all officials, officers and employees of the Commonwealth, its political subdivisions, intermediate units, and authorities," for each mile necessary to be traveled by the sheriff, deputies or employees. The mileage fee shall be received on each separate writ, rule, order, decree, process or notice served or service performed. The sheriff shall not receive more than one mileage where the plaintiff and the defendant and two or more contemporaneous writs are the same, or when two or more persons or prisoners are being conducted at one time to or from a place of detention or correction. The sheriff shall receive the mileage fee for transporting the prisoners and the deputies guarding them, and meals and lodging during the journey and the return of the deputies.
42 P.S. § 21116