1

Why is the script below giving me the error that the url {0} already in use?

Set-SPSiteUrl (Get-SPSite "http://nonsecuresiteurl") -Url 'https://securesiteurl' -Zone Extranet

Set-SPSiteUrl : Url {0} already in use!

Doing a Get-SPSiteurl -identity "http://nonsecuresiteurl" gives me this:

Url                                                                         Zone
---                                                                         ----
http://nonsecuresiteurl/                                                    Default

How can I add a new zone to the Site collection using a host name?

  • what happen when you browse the site collection with https in the browser? – Waqas Sarwar MVP Dec 20 '17 at 17:47
1

It could be used in another content database. Check in which content database the site is created and check if it exists in other content databases.

  • That was it. It existed in another content database. – Burre Ifort Dec 20 '17 at 19:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.