Requirement: Create a redirect in SharePoint Online.
How to Redirect SharePoint Online page to a different URL?
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 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/
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).