Forum Discussion
Redirect SharePoint modern page
Hi mrueegger
It is possible using out of the box SharePoint Online functionality to redirect a page to another page.
For example in my intranet I have a page /sites/intranet/sitepages/old.aspx
It contains useful information. After a restructure that information is now owned and maintained by the safety team who have their own communications site ( /sites/safety/ ) , and already have an old.aspx so they have to rename the page to new.aspx
In summary our old page is here:
- /sites/intranet/sitepages/old.aspx
the new page is here
- /sites/safety/sitepages/new.aspx
To ensure that anyone who goes to /sites/intranet/sitepages/old.aspx is redirected to /sites/safety/sitepages/new.aspx we have to do the following:
- in this library /sites/intranet/sitepages/ add an out of the box content type called "Link to a Document"
- you may have to enable content types for the site pages library and or the intranet site
- now delete the /sites/intranet/sitepages/old.aspx
- then in the SitePages library use the New button to create a new "Link to a document"
- you'll be asked for the "document name" , enter old
- you'll be asked for the "document url" , enter https://<YourTenant>.sharepoint.com/sites/safety/sitepages/new.aspx
- click OK
- in the /sites/intranet/sitepages/ library you'll now have an old.aspx
- if you click on the name in the library
OR - if you link to the full URL https://<YourTenant>.sharepoint.com/sites/intranet/sitepages/old.aspx it will redirect you to new.aspx
- if you click on the name in the library
You can use the same solution if you have some custom ASPX files which redirect users (created pre 2024), but new copies of those ASPX files download to the user's computer.