{"id":50,"date":"2014-07-24T15:28:49","date_gmt":"2014-07-24T13:28:49","guid":{"rendered":"http:\/\/howto.wakkee.sk\/?p=50"},"modified":"2014-07-24T15:29:39","modified_gmt":"2014-07-24T13:29:39","slug":"map-urls-to-host-named-site-collections","status":"publish","type":"post","link":"https:\/\/howto.wakkee.sk\/?p=50","title":{"rendered":"Map URLs to host-named site collections"},"content":{"rendered":"<p>When you create a new hostname site collection, the default alternate access mappings will still exist but cannot be used. Use Windows PowerShell commands to manage URL mappings for host-named site collections.<\/p>\n<p>Add a mapping to an existing site:<\/p>\n<p><strong>Set-SPSiteUrl (Get-SPSite &#8218;http:\/\/teams.contoso.com&#8216;) -Url &#8218;http:\/\/teamsites.contoso.com&#8216; -Zone Intranet<\/strong><\/p>\n<p>Each URL mapping is applied to a single zone. Use one of the following zone names when you map URLs:<\/p>\n<p>    Default<br \/>\n    Intranet<br \/>\n    Internet<br \/>\n    Custom<br \/>\n    Extranet<\/p>\n<p>If you do not specify the -Zone parameter and the URL mapping entry is new, the default zone is used.<\/p>\n<p>Remove a mapping for a site:<\/p>\n<p><strong>Remove-SPSiteUrl &#8218;http:\/\/teamsites.contoso.com&#8216;<\/strong><\/p>\n<p>Display all URL mappings for a site:<\/p>\n<p><strong>Get-SPSiteUrl -Identity (Get-SPSite &#8218;http:\/\/teams.contoso.com&#8216;)<br \/>\n<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you create a new hostname site collection, the default alternate access mappings will still exist but cannot be used. Use Windows PowerShell commands to manage URL mappings for host-named site collections. Add a mapping to an existing site: Set-SPSiteUrl (Get-SPSite &#8218;http:\/\/teams.contoso.com&#8216;) -Url &#8218;http:\/\/teamsites.contoso.com&#8216; -Zone Intranet Each URL mapping is applied to a single zone. &hellip; <a href=\"https:\/\/howto.wakkee.sk\/?p=50\" class=\"more-link\">Pokra\u010dova\u0165 na <span class=\"screen-reader-text\">Map URLs to host-named site collections<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-sharepoint-2013"],"_links":{"self":[{"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":1,"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":51,"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions\/51"}],"wp:attachment":[{"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howto.wakkee.sk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}