My solution on Social TechNet Forum.
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:
- Backup and Restore your content db
- Configure Alternate Access Mappings
- Unextend your web application
- Re-extend your web application to the desired URL:PORT
- stsadm.exe -o unextendvs -url http://justsharepoint.com:2000 –deleteiissites
- stsadm.exe -o extendvsinwebfarm –url http://justsharepoint.com -vsname <Web application name>
Central Administration Method
Unextend a Web application
- 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.
- On the Web Application menu, click Change Web Application.
- On the Select Web Application page, click the Web application you want to unextend.
- 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.
- 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.
- 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
- 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.
- On the Create or Extend Web Application page, in the Adding a SharePoint Web Application section, click Extend an existing Web application.
- On the Extend Web Application to Another IIS Web Site page, on the Web Application menu, click Change Web Application.
- On the Select Web Application page, click the Web application you want to extend.
- 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.
- In the Port, Host Header, and Use Secure Sockets Layer (SSL) fields, type the IIS bindings you want to use.
- 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.
- In the Load Balanced URL section, in the Zone list, click the zone that you previously selected.
- 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)