UniKL’s student portal has about 5 active subdomains running for it being:
First, I’d like to say that by going to any of the site, you might notice that the url would be very long, for instance if you’d to go to portal.unikl.edu.my then the url would be something like https://cas.unikl.edu.my/cas-web/login?service=https://online2.unikl.edu.my/j_spring_cas_security_check?spring-security-redirect=/home.htm
But in general we can trim down the url via the removal of j_spring_cas_security_check?spring-security-redirect=/home.htm since to my knowledge its purpose is to send you to home, which is what it'd be doing anyways with and without the additional parameters, resulting in an url that looks bit cleaner https://cas.unikl.edu.my/cas-web/login?service=https://online2.unikl.edu.my
Why the url is so long, yet can simply be trimmed down is outside the scope of my knowledge, but what I can say at least is that this can lead to interesting results where if we’d to use the previous urls then we can get redirect such as:
cas.unikl.edu.my - redirects to https://cas.unikl.edu.my/cas-web/login?service=https://portal.unikl.edu.my, which will later redirect you to either online1.unikl.edu.my or online2.unikl.edu.my
portal.unikl.edu.my - redirects to either online1.unikl.edu.my or online2.unikl.edu.my
online.unikl.edu.my- redirects to either online1.unikl.edu.my or online2.unikl.edu.my
online1.unikl.edu.my - redirects to online1.unikl.edu.my
online2.unikl.edu.my - redirects to online1.unikl.edu.my
If I remember correctly, the only active link in the past would be cas.unikl.edu.my which would send you to the student portal instead of having to do all these redirects. Now why are they doing bunch of redirections instead of having a set url? I’m not sure honestly, but I assume that it’s mainly to reduce the traffic that will be going over to a single site.
Think of it like this, if everyone flocks over to online1.unikl.edu.my, then the site will take eons to load as it doesn’t seem like their infrastructure is equipped to handle thousands of people trying to access the site at the same time. On the other hand, if they would to have 2 sites & have it implemented where some people may be redicetd to online1 whereas others would be redirected to online2, then traffic can be split into 2 sites instead of having it congested to one. This mean that if you know about this system, then you can kinda “game” it by changing your url to online2 whenever online1 is slowed to a crawl (and vice versa).
Another reason as to why they aren’t killing the cas link I feel is to ensure that the student portal is able to be accessible even for students that don’t have too much technical know-how. If I’d to wake up one day and suddenly not able to go to my student portal then I’d start freaking out. It can be somewhat mitigated if they’re telling everyone that they’d be killing off cas, but there’s not really any good way to do it, so simply having it maintained as an additional subdomain works even if it’s less pretty, no idea why it’s redirecting to portal instead of online1 or online2 though.
In conclusion, what can be gained from this is the fact that if you’re on online1 and the site is loading very slowly, then you can instead scoot over to online2 instead. If you’re rather indecisive then going to any of the other links would work just fine as well (I personally prefer portal because it’s more fun & feels logical to type out), though I genuinely have no idea how the back-end determines whether to send someone to online1 or online2. I suspect that it isn’t as simple as being 50-50 as on some days I find online1 being preferred whereas on other days online2 is the one being chosen. If I’ve to usher a guess, then the back-end either check for traffic on one site (online1) and would send the user to the other site if it determines that the site is currently not equipped to handle the traffic, or at least ideally that would be best. Lastly before ending this off I'd like to add couple of few notes:
Cookies is seemingly saved between both online1 & online2 sites, so if you've already logged in to one of the site then you can simply change the url without having to re-log in to your account
If you are unable to choose your preferred online link before logging in, then try to change it after logging in
Removing /login?service= would make the site freak out since it have no idea where to send you to, if you accidentally did this and now can't log in to your student portal then I'd advise you to delete your cookies
Removing /login?service= would also make the site freak out since it have no idea where to send you to, if you accidentally did this and now can't log in to your student portal then I'd advise you to also delete your cookies
This goes without saying, but I'm not responsible in any mishap that may occur due to you tinkering with the url, so if you've no idea what you're doing then simply just leave it at only changing the online1 & online2 link. I also have no guarantee whether online2 site would be faster than online1 site and vice versa, nor do I've any confirmation on whether the act of simply changing the url would still work in the future