My solution on Social TechNet Forum.

 

Scenario

MOSS 2007 site setup using port 2000, so the URL looked like http://justsharepoint.com:2000

Having such a URL is not a great idea, especially when you have to type in the port number 2000! Why can’t we simply type in http://justsharepoint.com and be done with!!

Ok, now that you have set this up and in production, there isn’t much you can do, right? Wrong! You can!

What you don’t have to do is:

  1. Backup and Restore your content db
  2. Configure Alternate Access Mappings

Resolution

  1. Unextend your web application
  2. Re-extend your web application to the desired URL:PORT
STSADM Method
  1. stsadm.exe -o unextendvs -url http://justsharepoint.com:2000 –deleteiissites
  2. stsadm.exe -o extendvsinwebfarm –url http://justsharepoint.com -vsname <Web application name>
Central Administration Method

Unextend a Web application

  1. On the SharePoint Central Administration Web site, on the Application Management page, in the SharePoint Web Application Management section, click Remove SharePoint from IIS Web site.
  2. On the Web Application menu, click Change Web Application.
  3. On the Select Web Application page, click the Web application you want to unextend.
  4. In the Select IIS Web site and zone to remove list, click the IIS Web site and zone you want to remove. Because a Web application can be extended in up to five zones, make sure you select the correct IIS Web site and zone.
  5. In the Delete IIS Web sites section, click Yes if the IIS Web site is only hosting SharePoint Products and Technologies content. If the IIS Web site is hosting other content, you might not want to delete the Web site. In that case, click No.
  6. Click OK. This action does not delete the Web application, nor does it delete the content databases of the Web application.

After you have unextended the Web application, you can re-extend the Web application to the same zone, using your updated bindings.

Re-extend a Web application

  1. On the SharePoint Central Administration Web site, on the Application Management page, in the SharePoint Web Application Management section, click Create or extend Web application.
  2. On the Create or Extend Web Application page, in the Adding a SharePoint Web Application section, click Extend an existing Web application.
  3. On the Extend Web Application to Another IIS Web Site page, on the Web Application menu, click Change Web Application.
  4. On the Select Web Application page, click the Web application you want to extend.
  5. In the IIS Web Site section, if you have already created an IIS Web site with the appropriate bindings for Office SharePoint Server 2007 to use, click the Use an existing IIS Web site option and select the IIS Web site from the list. Otherwise, click the Create a new IIS Web site option.
  6. In the Port, Host Header, and Use Secure Sockets Layer (SSL) fields, type the IIS bindings you want to use.
  7. In the Load Balanced URL section, in the URL field, type the URL that end users will use to locate this Web application. If you are using a load balancer or reverse proxy, this is the URL of the load balancer or reverse proxy.
  8. In the Load Balanced URL section, in the Zone list, click the zone that you previously selected.
  9. Click OK.

You may be required to configure additional steps in case you are using AAM, SSL, authentication method, in that case refer to the source of these steps on TechNet (http://technet.microsoft.com/en-us/library/cc262366.aspx)

%d bloggers like this: