What are your other site settings? For instance, do you have your Default alias path set to something like /home?
Or do you have the URL setting for Default page as domain root?
Do you have any domain aliases on the site that are redirecting to another page on the site?
If any of these are configured incorrectly they could cause that issue. I've not had to implement that code you referenced in a what we will call regular implementation of Kentico. Meaning of you're not behind a load balancer or some proxy, that code isn't needed. If you have a single server with an ssl cert in it, there should be no need for that ssl accelerator code.