Change the URL of a SharePoint list or library

Below are listed three different ways to change the URL of an existing list or library.

1. With PowerShell

Changing the URL is possible by moving the root folder to a new URL. Here is a PowerShell script to change the URL of an existing library:

Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue

$libOriginalUrl = "/Lists/YourLibName1";
$libNewUrl = "/YourLibName2";
$web = Get-SPWeb -Identity http://....

$lib = $web.GetList($web.Url + $libOriginalUrl)
$rootFolder = $lib.RootFolder;
$rootFolder.MoveTo($web.Url + $libNewUrl)

2. With SharePoint Designer

Open the site in SharePoint Designer and in All Files in Site Objects right click the list and click “Rename” to rename it or drag and drop to move it to another folder. For example a list can be moved outside “/Lists” and the Url will change from “webUrl/Lists/List1” to “webUrl/List1”.
All Files in SharePoint Designer

3. With Windows Explorer

Its the same thing as with SharePoint Designer done in Windows Explorer without opening SharePoint Designer. To get to all files and folders of the site open a document library with Windows Explorer by clicking “Open in Explorer” in the Ribbon. Then in Windows Explorer move up in the folders hierarchy to show all the files and folders in the root of the site. You can rename a list/library and you can drag and drop the list’s root folder to add/remove parts of the Url as in the example with SharePoint Designer above. Because standard lists don’t have the option in the Ribbon “Open in Explorer” you can use any document library just to get to the folders of the site as explained in the previous paragraph and then find your list and rename/move it.
Site files in Explorer


Hyperlinks in Quick Launch will continue to point to the old URL of the list so after changing the URL you need to update the quick launch to reflect the new list name and URL.


7 Responses to Change the URL of a SharePoint list or library

  1. Pingback: ‘Edit Document’ button instead of ‘Check Out’ when opening a Word document | Naim's Blog

  2. Anonymous says:

    Line 7 of code: the variable name is libOriginalUrl and not listOriginalUrl

  3. Pingback: Erreur lors de la création d’un template de bibliothèque SharePoint avec Visual Studio | SharePoint Experience

  4. Pingback: URL einer Liste oder Bibliothek in SharePoint ändern - Die SharePoint-Wiese

  5. Great post Naim 🙂 Tested, works like a charm!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: