This isn't possible in SharePoint Online but I would consider utilising the document ID feature, so that documents can be tracked regardless of their location in the library.
After renaming a SharePoint Online document library folder, from /OldName to /NewName, how to redirect URLs for everything inside the folder, so older URLs forward to new URLs?
Hi there
After renaming a SharePoint Online document library folder, from /OldName to /NewName, how to redirect URLs for everything inside the folder, so older URLs forward to new URLs?
Happy to use PowerShell or any other way.
E.g.
- /documents/OldFolder/abc/abc.dox is forwarded to /documents/NewFolder/abc/abc.dox
- /documents/OldFolder/abc/bbc/cbc/ is forwarded to /documents/NewFolder/abc/bbc/cbc/
And, so on.
Thanks.
1 additional answer
Sort by: Most helpful
-
Yi Lu_MSFT 17,611 Reputation points
2022-08-30T08:12:03.08+00:00 Hi @frob
The folder defines the path. There's no way of getting around this. It's just like renaming a folder on your hard drive. If you have a link to a file on your hard drive, then change the folder name, any links to the previous folder will break since that folder no longer exists.However, we could use the old library url after we rename the library by library settings >list name, description and navigation.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.