  We introduce an extended setting to study Hecke pairs $(G,H)$ which admit a
regular representation on $L^2(H\backslash G)$, and consequently a
$C^*$-algebra. As the result, many pairs of locally compact groups which had
been studied in noncommutative harmonic analysis, Lie theory and representation
theory are included in the theory of Hecke $C^*$-algebras. These Hecke pairs
mainly consist of locally compact groups and their compact subgroups, or
cocompact subgroups, or open Hecke subgroups. We clarify similarities,
differences and relationships of our formulation with the discrete case, and
thereby we obtain new results for discrete Hecke pairs too. In the discrete
case, using the Schlichting completion and our results, we show that the left
regular representations of associated Hecke algebras are bounded homomorphisms.
We observe that the relative unimodularity of a discrete Hecke pair amounts to
the condition that the left regular representation be a $\ast$-homomorphism. On
the other hand, we have recently shown that relative unimodularity is a
necessary condition for a Hecke pair to possess property (RD). Motivated by
these facts, we also give several criteria for relative unimodularity of
discrete Hecke pairs.
