SharePoint Online- We recently migrated a site from an old location to a new location. Users have the link(URL) to our old site. How can i redirect the users to the new location(new URL) when the try to access the Old URL?


1 Answer 1


You "could" add a CEWP to the homepage to insert some javascript to redirect them automatically.

window.location.href = "https://sharepointtenant.sharepoint.com/";

Ideally, if you were coming from onprem, you could add this javascript to the 404 error page and turn off all the sites so that the 404 page will redirect them.


Not the answer you're looking for? Browse other questions tagged or ask your own question.