changing the public facing URL using powershell/stsadm RRS feed

  • Question

  • MOSS 2007:

    Hi - does anyone know how to change the public facing URL for a Web App using Powershell/STSADM?




    • Edited by Mike Walsh FIN Thursday, September 8, 2011 3:00 PM MOSS 2007 added after response from OP
    Thursday, September 8, 2011 2:41 PM

All replies

  • Hi JonJames,

    STSADM syntax like this: stsadm -o renamesite -oldUrl http://HostHeader_1 -newUrl http://HostHeader_2

    Find details here: http://technet.microsoft.com/en-us/library/cc263038%28office.12%29.aspx 

    PowerShell - Set-SpSite is the equivalent.

    Hope this helps!

    Thursday, September 8, 2011 5:26 PM
  • Hi,

    This can be done easily via Central admin UI.

    You can extend your intranet zone web application to public facing web application with desired URL.

    You can also do it via alternate access mapping.

    Thanks, Rahul Rashu
    Thursday, September 8, 2011 5:54 PM
  • Thanks - that works for host named sites but what about for path-based sites? 





    Friday, September 9, 2011 7:31 AM
  • Thanks - but we don't use the UI - all changes are scripted only





    Friday, September 9, 2011 7:32 AM