IPA: /ˈlɔːŋweɪz/
KK: /lɔŋˌweɪz/
In a direction that is longer than it is wide, or along the length of something.
The rope was laid longways across the field.
Longways → It is formed from "long" (from Old English "lang", meaning having a great distance) and "-ways" (from Old English "weg", meaning way or manner). The word "longways" describes a manner or direction that is along the length of something.
Think of something that is 'long' in distance and moving 'along' that length — that's what 'longways' means.