qwerty12321
Does the rule for "which" i.e. it directly modifies the noun preceding it also follow for "who", "that", "when", "where", "whose", "whom"?
Thanks

Well, relative pronouns (all those words you just mentioned: who, that, when, in which, etc...) are noun modifiers; hence, they have to follow the "touch" rule.
So yes, anytime you use a relative pronoun to introduce a noun modifier, these modifiers are not too flexible and generally have to follow the noun (or noun clause) it's modifying.
If the relative pronoun is not place next to the noun it's supposedly modifying, then we would have a "misplaced modifier."
The modifying phrase is meant to describe the noun it follows ---- that's why we need to place noun modifiers right after their nouns so that we avoid any kind of ambiguity.
Hope that helps!