The calculated distance (air line) between Rabat and Ifrane is approximately 104 miles respectively 168 kilometers.
By car or train, the actual journey to Ifrane is certainly longer, as only the direct route (as the crow flies) between Rabat and Ifrane has been calculated here.