3

We have registered our Web Application under the url http:\intranet. We no longer wish to use that URL at all and want to use http:\somethingelse. Is there anyway you can change the default URL in SharePoint?

  • 1
    Have you tried changing the AAM in CA? – K.W May 29 '12 at 12:34
5

Even though you can do this by modifying Alternate Access Mappings in the long run you'll be better off by deleting the old web app, but not the databases, add a new web app, activate all needed web app scoped features and attach all the old content databases.

  • Why would you suggest this? Why not use AAM & check the IIS bindings? – Dennis G May 27 '13 at 14:18
  • 1
    @moontear It's a tiny bit more work now, if it's a single server farm (if it's a multi server farm then I'd argue it's not more work). But if you ever want to add a new server, then you don't have to remember to change the IIS binding on the new server. – Per Jakobsen May 27 '13 at 18:56
1

I've had to do this in the past with host-named site collections.

We used this MSDN article to get create the site collections: http://technet.microsoft.com/en-us/library/cc288637.aspx#section1

In order to rename them afterwards you can use 'Set-SPSite' to rename them (http://technet.microsoft.com/en-us/library/ff607958).

For example: Set-SPSite -Identity http://test1.domain.com -URL http://test2.domain.com

I did run into one issue using this command related to the web.config file for the web app and a custom login page, but it was a pretty simple solution (http://sharepoint.stackexchange.com/questions/29630/i-am-trying-to-rename-a-site-using-set-spsite-command)

2

Yes you need to use alternate access mapping for this.

Below links will get you started

http://technet.microsoft.com/en-us/sharepoint/ff679917.aspx

https://support.cloudshare.com/entries/20713426-sharepoint-2010-alternate-access-mappings

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.