Hello All,
Kindly suggest us to write a rule for redirecting SharePoint URL to office 365 site only for domain page (web Application) not for other site under that or subsite.
Example: www.test.com/sites/pages/default.aspx to https://www.abc.com/sites/pages/default.aspx.
On the first URL of SharePoint should not redirect other site pages under the webapplication or site collection page.
If user want to access: www.test.com/sites/pages/team.aspx it should be redirect to original site not to office 365.
Thanks,