I have created multiple HNSC under a unique Web Application as follows: http://site1.com, http://site2.com, http://site3.com.

I would like to be able to access any of these site collections using both http://site1.com and http://www.site1.com.

Currently, I am able to access the site using http://site1.com but when I try using www I get the following error: Alternate access mappings have not been configured. Users or services are accessing the site http://site1.com with the URL http://www.site1.com.

Do I really need to use an AAM? I was under the impression that this was not necessary if using HNSC. Or do I need to create the HNSC using www?


Only one URL per zone is allowed for the HNSC collections. this is by design. Now you have two options.

  • Remove the exiting default url and add the new url in default zone
  • Or add the new url into different zone so both URL will be accessible for the users.

Unable to add URLs using Set-SPSiteUrl in SharePoint 2013 RTM

  • Thank you for the prompt reply. There are no entries in AAM for the url's. If I create a new default zone through Central Admin with the url (ie http:// www . site2.com), how do I map this to the right HNSC (site2.com)? – Gonzalo Jun 8 '15 at 19:59
  • No, you need to add that url in different zone of hnsc....using set-up siteurl.... – Waqas Sarwar MVP Jun 8 '15 at 20:01
  • Thanks. I'll try though PowerShell then and will let you know the outcome – Gonzalo Jun 8 '15 at 20:02
  • That worked, thanks! This is not achievable through Central Admin then? – Gonzalo Jun 8 '15 at 20:07
  • Nope...hnsc only via powershell – Waqas Sarwar MVP Jun 8 '15 at 20:14

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.