A review of the history of drivetrain layouts will find just about every practical layout has been tried.
Front engine rear axle drive, always engine longitudinal with a 90-degree turn at the axle, I know of no exceptions.
Rear engine rear drive can be:
- longitudinal with the engine behind the axle (traditional VW air-cooled Beetle, Porsche 911, original Fiat 500, Fiat 126, many others)
- transverse with the engine behind the axle (many Subaru and Suzuki minicars of the past, NSU Prinz, probably others)
- longitudinal with the engine ahead of the axle "mid engine" (Porsche Cayman)
- transverse with the engine ahead of the axle "mid engine" (smart fortwo, Mitsubishi i, Toyota MR2, Pontiac Fiero, Fiat X1/9). It is tricky to have a back seat with this layout. The Mitsu does it, and for that matter the smart fortwo as well even though it is too small for a back seat, by having the wheels all the way to the back and the engine tilted backward at a steep angle. The crankshaft is ahead of the rear wheel centerline but the cylinder head is behind it.
Front engine front drive can be:
- transverse with engine ahead of the axle (almost everything nowadays)
- longitudinal with engine ahead of the axle (most Audis, Chrysler LX cars Concorde Intrepid etc., most Subarus)
- longitudinal with engine BEHIND the axle (original Renault 4 and 5 "LeCar", some early Saabs, Cord 810 from the 1930's)
All wheel drive can be any of the above and there are examples that can be found of all of them. Remember that most all-wheel-drive vehicles have a design basis that starts out as one of the above. A Subaru Impreza is fundamentally, at its heart, a front-drive car, and so is an Audi A4. A 4x4 pickup is fundamentally a front-engine rear-drive.