I *can* get rid of subdomains. It's just much more complex.
The first thought is to just get rid of everything in front of the first period.
That simplifies things tremendously: No more need to distinguish between http: and https:
BUT... What about domains with *NO* prefix?
Example: What if you have just
If I strip every thing before (and including) the first period we would end up with just com
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.