Redirect Sitecollection URL

%3CLINGO-SUB%20id%3D%22lingo-sub-814244%22%20slang%3D%22en-US%22%3ERedirect%20Sitecollection%20URL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-814244%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20to%20redirect%20SharePoint%20online%20site%20collection%20URL%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcompany.sharepoint.com%2Fsites%2Fsite1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcompany.sharepoint.com%2Fsites%2Fsite1%3C%2FA%3E%3C%2FP%3E%3CP%3Eredirect%20to%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcompany.sharepoint.com%2Fsites%2Fsite2%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcompany.sharepoint.com%2Fsites%2Fsite2%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-814244%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-814307%22%20slang%3D%22en-US%22%3ERe%3A%20Redirect%20Sitecollection%20URL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-814307%22%20slang%3D%22en-US%22%3EAssuming%20the%20first%20site%20is%20a%20modern%20site%2C%20the%20only%20way%20you%20have%20to%20force%20that%20redirection%20is%20by%20means%20of%20SPFx%20Extension%20where%20you%20have%20the%20redirection%20code%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-815502%22%20slang%3D%22en-US%22%3ERe%3A%20Redirect%20Sitecollection%20URL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-815502%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F383629%22%20target%3D%22_blank%22%3E%40Jeyganesh%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20if%20it's%20a%20classic%20you%20can%20use%20this%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechnologyblog.rsmus.com%2Fit-infrastructure%2Fhow-to-redirect-users-to-a-new-site-in-sharepoint-online%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftechnologyblog.rsmus.com%2Fit-infrastructure%2Fhow-to-redirect-users-to-a-new-site-in-sharepoint-online%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

How to redirect SharePoint online site collection URL

 

Example:

https://company.sharepoint.com/sites/site1

redirect to

https://company.sharepoint.com/sites/site2

2 Replies
Highlighted
Assuming the first site is a modern site, the only way you have to force that redirection is by means of SPFx Extension where you have the redirection code
Highlighted