I have a multisite application with around 40+ Https sites. The scheme column for all the sites is empty.
I tried creating a schedule job that will update Scheme to HTTPS looping in all the sites using SiteDefinitionRepository. The problem is Scheme property is read only & so I cannot set the same.
Is there a way I can set Scheme to HTTPS rather than doing it manually for the 40+sites?
The
SiteDefinition
andHostDefinition
implementations areIReadOnly
.Create a writable clone and set
UseSecureConnection
to true in the host definitionThe code will turn this
in to this