How to Create a Redirect in SharePoint Online?
Requirement: Create a redirect in SharePoint Online.
How to Redirect SharePoint Online page to a different URL?
Redirects are a great way to send your visitors automatically to another page or forward users to other sites from your SharePoint Online when they try to access a page that doesn’t exist or has been moved. This can be helpful if you want to reorganize your website or have content moved, but you want to make sure that people can still find what they’re looking for. This article will show you how to create a Redirect in SharePoint Online.
Step 1: Create a “News link” in SharePoint Online
- Login to your SharePoint Online site, click on the “New” button in the toolbar, and choose “News link”
- Provide the link to redirect. (in my case it’s the URL of the hub site “https://crescent.sharepoint.com/sites/saleshub”), give a title to it, and click on “Post” to create a news link.
Step 2: Set the Redirect page as the Home page
Once you have created the redirect page, the next step is to set the redirect page as a home page so that it takes the user to the new site when they visit the site’s home page.
- Visit the “Site Pages” library by going to site contents >> Site Pages
- Right-click on the redirect page you created and then choose “Set as Home page”.
From now on, when a user visits the home page, they’ll be redirected immediately to the new site link configured on the redirect page. Visit the “Site Pages” library and edit the “Redirect” page you configured if you want to change the redirect. E.g., In my case, It is: https://crescent.sharepoint.com/sites/Sales/SitePages/
Undoubtedly, redirects are a great way to keep users from getting lost on your site and improve the user experience. Please note, this method only redirects users to the new site when they visit the home page and not any particular list or library! This method works for classic sites as well (meaning, you can create a News link in classic SharePoint sites and follow the above steps).
6 thoughts on “How to Create a Redirect in SharePoint Online?”
this works! but how to edit it when source link get changed again?
Append “?stay=true” to the URL to stop redirect.
I found a way to set a home page to a news link that redirects to a document library:
Hi, It seems that the approach to set a doc lib as a home page does not work anymore (https://www.sharepointdiary.com/2017/02/sharepoint-online-change-home-page-using-powershell.html). I would like to use your news link approach to do so, but I can’t seem to find a way in PowerShell to give the redirection URL. I see how to create a modern page (https://www.sharepointdiary.com/2019/08/create-modern-page-in-sharepoint-online-using-powershell.html), but not how to create a repost and set the redirection value. Thank you!
Do you have a way to create a site using the Template type REDIRECTSITE#0, mimicking what SP Online does when a URL is changed?
this is really useful, thank you!