I am trying to create multiple URLs for single host named site collection and single zone (Default) using Set-SPSiteURL but I keep getting following error:
"Set-SPSiteURL : Could not set URL http://site2.domain.local/ for zone Default because a URL is already set for the zone. To set a URL for this zone, first remove the existing URLhttp://site1.domain.local/"
Command that I run is: "Set-SPSiteURL -Identity http://site1.domain.local -Url http://site2.domain.local -Zone 0"
If I understood correctly, in SharePoint 2013 you can have multiple URLs configured for single host named site collection and in single zone (in this case zone is Default) but it seems that Set-SPSiteURL cannot do this.
In our environment web application has "standard" root site collection (not host named) using URLhttp://servername and additional host named site collection and with Set-SPSiteURL I cannot create additional URLs per zone in any. Creating additional URLs in different zone (e.q. in Intranet zone) is working ok:
"Set-SPSiteURL -Identity http://site1.domain.local -Urlhttp://site2.domain.local -Zone 1"
but then again creating additional URLs in Intranet zone (Zone 1) returns error mentioned above.
Was anybody successful using Set-SPSiteUrl for multiple URLs per zone, does this maybe work only in multi-tenancy mode (our environment is not multi-tenancy).
Thanks in advance,
Bojan