![]()
In this “Server relative URLs must start with” blog, we will learn how to fix the error “Server relative URLs must start with SPWeb.ServerRelativeUrl”. Generally, we will get this error when we try to get all files from a given folder in the SharePoint Online document library using the SharePoint REST API. For example, if
![[Fixed]: Server relative urls must start with SPWeb.ServerRelativeUrl 1 Server relative urls must start with SPWeb.ServerRelativeUrl in SharePoint REST API - Fixed](https://i0.wp.com/global-sharepoint.com/wp-content/uploads/2022/06/Server-relative-urls-must-start-with-SPWeb.ServerRelativeUrl-in-SharePoint-REST-API-Fixed.jpg?fit=954%2C542&ssl=1)