Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm using the SiteDomainHelper API on my multi-domain'd project. So far I've been adding the domain values like so...
SiteDomainHelper
SiteDomainHelper.AddSite("live", "domain1.com", "domain2.com");
Recently some of my domains have become HTTPS, and I've had to specify the hostname in the CMS as "https://domain1.com".
Does anyone know if I need to be explict with the SiteDomainHelper API? Does the value need to be "domain1.com" or "https://domain1.com"?
This is probably a question more for Stephan than anyone else, but please do feel free to chip in :-)
Thanks, - Lee
(checking)
With...
It will work for http and https, ie if current request is http, it will map to http, and if current request is https, it will map to https. So even though you specify your domains with "https://domain.com" you can leave the SiteDomainHelper as-is.
Cool, thanks Stephan!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
SiteDomainHelper - explicitly add domain protocol?
I'm using the
SiteDomainHelper
API on my multi-domain'd project. So far I've been adding the domain values like so...Recently some of my domains have become HTTPS, and I've had to specify the hostname in the CMS as "https://domain1.com".
Does anyone know if I need to be explict with the
SiteDomainHelper
API? Does the value need to be "domain1.com" or "https://domain1.com"?This is probably a question more for Stephan than anyone else, but please do feel free to chip in :-)
Thanks,
- Lee
(checking)
With...
It will work for http and https, ie if current request is http, it will map to http, and if current request is https, it will map to https. So even though you specify your domains with "https://domain.com" you can leave the
SiteDomainHelper
as-is.Cool, thanks Stephan!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.