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
  • 1
    Have you tried changing the AAM in CA?
    – K.W
    May 29, 2012 at 12:34

3 Answers 3

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.

2
  • Why would you suggest this? Why not use AAM & check the IIS bindings?
    – Dennis G
    May 27, 2013 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. May 27, 2013 at 18:56
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

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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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