How to Rename SharePoint Web Application Name and URL?

We may want to change a web application name to make consistency in naming conventions or in some other scenarios. But I don’t find any SharePoint Central Administration options to rename a web application! So how to rename SharePoint 2013 web application Name? Well, PowerShell can help!

Rename a SharePoint web application using PowerShell: 

PowerShell can be used to rename the web application name in SharePoint 2013. Let’s rename a SharePoint web application using PowerShell

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Function to Rename SharePoint Web Application
Function Rename-WebApp($OldName, $NewName)
{  
   #Get the Web Application by its Name
   $WebApp =Get-SPWebApplication | where {$_.Name -match $OldName}

   #sharepoint 2010 rename web application powershell
   $WebApp.Name= $NewName

   $WebApp.Update()
   Write-Host "Web Application Name Changed from: $($OldName) to $($NewName)"
}

#Call the function to Rename Web App
Rename-WebApp "External Site" "Extranet"

However, this PowerShell script just renames the web application name but not the URL! I don’t find a way in SharePoint 2013 to rename web application with PowerShell.

How to Rename SharePoint web application URL?

To rename a web application URL in SharePoint, We’ve to update the DNS entries, alternate access mapping (AAM) in Central Administration and update the Host header bindings in IIS.

SharePoint web application URL change:
To Rename SharePoint 2013 web application URL, lets update the AAM entries first. Go to: Central Administration >> System Settings >> Configure alternate access mappings under Farm Management. Pick your web application and give a new URL to it.

how to rename sharepoint 2013 web application

Update HOST Name in IIS Bindings to rename SharePoint Web application URL:
Next step is to update IIS bindings. Go to IIS (Start > Run > InetMgr), Select your target web application, Click on “Bindings” on right pane.

how to change web application url in sharepoint

Click on “Edit” and then update the “Host Name” with new URL for the web application.

sharepoint change url of web application

That’s all! we are done. The above steps applicable to SharePoint 2007 also to change web app URL.

You can extend an existing SharePoint web application to give a new Name and URL for it!

Salaudeen Rajack

Information Technology Professional with Two decades of SharePoint Experience.

4 thoughts on “How to Rename SharePoint Web Application Name and URL?

  • October 2, 2014 at 9:04 PM

    For SharePoint 2013, this technet provides a good overview on the URL portion of the rename/change http://technet.microsoft.com/en-us/library/cc262366(v=office.15).aspx

    Reply
  • August 14, 2014 at 7:54 PM

    The proper way would be to delete the webapplication and recreate it with the new URL because there are still references to the old URL in the ConfigDB that will give you issues later. Just keep your DBs and reattach them after the fact.

    Reply
    • June 22, 2016 at 3:15 PM

      where is it? noob gg rekt

      Reply
  • April 24, 2014 at 3:44 AM

    The portion after renaming the Web App helped alot! Thanks tons!!

    Reply

Leave a Reply