SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Have you tried changing the AAM in CA? – K.W May 29 '12 at 12:34
up vote 5 down vote accepted

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.

share|improve this answer
Why would you suggest this? Why not use AAM & check the IIS bindings? – Dennis G May 27 '13 at 14:18
@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

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:

In order to rename them afterwards you can use 'Set-SPSite' to rename them (

For example: Set-SPSite -Identity -URL

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 (

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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