Office 365 – Hybrid Team Site Redirect AAM
Migrating team sites to Office 365? Worried about broken links? Check this out.
Recently I found a helpful STSADM trick that provides HTTP redirection for hybrid SharePoint farms moving team sites into the Office 365 cloud. As we migrate sites and remove from the source farm on-premise users will see 404 Page Not Found when open old URLs.
However, we can use STSADM to provide a “<RedirectUrl>” Alternate Access Mapping (AAM) property on the source SharePoint Web Application (http://portal/*) which redirects user traffic to a destination Office 365 Tenant (ex: https://tenant.sharepoint.com/*)
If you are gradually moving team sites into the cloud with third party tools (ShareGate, Metalogix, DocAve, etc.) this trick is invaluable to preserve a smooth user experience where old links will seamlessly redirect to Office 365 team sites in the cloud. Cheers! ![]()
Diagram
Commands
Enable AAM Redirect
stsadm -o addzoneurl -url http://portal -urlzone Default -zonemappedurl http
://portal -redirectionurl https://tenant.sharepoint.com
Verify AAM Redirect
stsadm -o enumalternatedomains -url http://portal
