changing the public facing URL using powershell/stsadm
MOSS 2007:
Hi - does anyone know how to change the public facing URL for a Web App using Powershell/STSADM?
Cheers
Jonj
September 8th, 2011 10:53am
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!BlueSky2010
Free Windows Admin Tool Kit Click here and download it now
September 8th, 2011 1:38pm
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
September 8th, 2011 2:06pm
Thanks - that works for host named sites but what about for path-based sites?
Cheers
Jonj
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2011 3:44am
Thanks - but we don't use the UI - all changes are scripted only
Cheers
Jonj
September 9th, 2011 3:45am