If you ever need to establish permanent redirects in SharePoint Online, there are several ways to go about it, but only one that produces a clean user experience.
This came up recently with a client who had a home site collection and a marketing site collection. We wanted to make sure that when user navigated to the home site collection, they automatically ended up in the marketing site collection. If both sites were in the same collection, it would be as easy as making the home page of the marketing site the home page for the entire collection. Since they weren’t in the same collection, we had to approach it from a different angle.
The best way to go about creating redirects in SharePoint Online is actually not much more work:
- Load up SharePoint Designer and create a new aspx page in the Site Pages folder for the source site. Edit it in advanced mode.
- Add the following tag under the <head runat=”server”> tag:
<meta http-equiv=”REFRESH” content=”0;url=DestinationUrl” />
- Replace “Destination URL” with the URL that you want to redirect to.
- The ‘0’ (that’s a zero) indicates no delay before loading the new URL.
- Note that you have to set this page as the home page for the site in Designer, since you can’t actually open it through the UI without being immediately redirected.
The result is that users visiting this page will be redirected before any of the page elements load, resulting in a very clean experience.