"You have to go to school."
Translation:Ihr müsst zur Schule gehen.
Germans do not use prepositions freely as in English :) in some cases they use nach, sometimes ins, sometimes zu and sometimes in. For school Germans use zur Schule or in die schule ( for verb gehe). For cinema you use ins Kino gehen. One has to memorize these. Here is a useful video for this subject. https://www.thegermanz.com/zu-nach-in-most-efficient-preposition-german/
That works, too.
(As does "Sie müssen zur Schule gehen", in case it's one or several teacher(s) or grown-up student(s).)
In German, how does one make a distinction between "You have to go to THE school" and "You have to go to school (in general)"?
My initial instinct is to use zur Schule to say "to the school", and zu Schule to say "to school (in general)".