Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

3 Answers 3

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
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

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)

share|improve this answer

Your Answer

 
discard

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.