Please upgrade your web browser now. Internet Explorer 6 is no longer supported.
Zac Smith
SharePoint, WSS and MOSS development.

Change a SharePoint web application URL

by Zac Smith 24-Jan-08, 4 Comments
UPDATED Feb 5th:
Just noticed that if you install SP1 for WSS there is a new STSADM command called renamesite.
Check out the details here:
 
This seems like it should be an easy task, but always makes me think for a few minutes before I work it out. Here are a couple of simple steps to show you (and me) how its done.
 
1/ Open up central admin and browse to 'Alternate Access Mappings' found under the operations tab.
 
aam
2/ Click the 'view' drop down on the top right of the URL list and select 'Change Alternate Access Mapping Collection'. Then select the web application with the URL you would like to modify.
 
aam select
 
3/ Select 'Edit Public URLs' and change the URL's for any zones necassary. Although the concept of zones is more semantic than anything, they do represent the different URL's a web application may be accessed by (and should suggest a use eg intranet zone for an intranet web app).
In my example I am changing http://wsstest to http://wssfun.
zone
 
 4/ The final step is to update IIS to reflect the changes. Open up IIS manager (start | run | inetmgr) and browse to the web site that corresponds to the zone you updated. Right click the properties, select the web site tab and click advanced. Now change the host header to the new value.
 
 
iis
 
The web application should now be using the new URL.
Categories:
4 responses so far:
  • Sunday, 31 May 2009 08:19 by Anjan
    I have added the URLs as you have explained above. And tried to hit the new URL but it didn't work. Here are the details... By default my sharepoint site is http://fldsps02:1111/ I created AAM as http://mysitedefault and modified the host header value...but it didn't work. Can you please help me on it?
  • Sunday, 31 May 2009 08:19 by Zac Smith
    Make sure the port is set to 80 as well, looks like you were using a port other than 80 before. I would recommend either installing the service pack and using the renamesite command OR do an stsadm backp and then restore to a new web application with the new URL.
  • Sunday, 31 May 2009 08:19 by Arjan van Grol
    Hello, With me this approuch is also not working. I have to change te name from Intranet to Worksite. But now the site is not working.
  • Sunday, 31 May 2009 08:19 by Emma
    I've done the same thing, but the sharepoint site lists on My Site did not seem to update the site url the I am a member of. Is there any solution or any suggestion at least where I should start from? Thanks in advance.

 

Post a Comment:
Name:
URL:
Email:
Comments: