This question is inspired by the root cause I learned about in this question, where it turned out that the order of URLs in the BaseUrls matters. If a site is set up as both http and https, then the https site should be listed first in the BaseUrls argument. Otherwise, Page Preview links to http sites, the site manager links to http sites, and XPM doesn't work well, because it loads mixed content.
So this leads me to conclude that maybe BaseUrls was meant for multiple URLs, not multiple protocols. Examples:
Much Weeping and gnashing of teeth:
Set-TtmWebsite -Id ExampleLiveSite -BaseUrls http://example.com, https://example.com
No weeping, but probably ¿unnecessary?:
Set-TtmWebsite -Id ExampleLiveSite -BaseUrls https://example.com, http://example.com
What BaseURLs was meant to do:
Set-TtmWebsite -Id ExampleLiveSite -BaseUrls https://example.com, https://sample.com
Question: Are these assumptions correct?
But we've also been doing something like the example below, where we create a test site for a Live site.
Set-TtmWebsite -Id ExampleLiveSite -BaseUrls https://example.com, https://example-test.com, https://sample.com, https://sample-test.com
Question: Given that the first site listed is what "Preview Page" points to, and it's what XPM points to, should we be listing the test site first?
Question: Are there any other best practices to follow, or at least not-so-great practices that we should avoid?