
Hi @kekkou,
Hope everything is going well.
First question about whether you redirect can carry the test of redirection:
In SharePoint Online, when you block access to a site and set a NoAccessRedirectUrl
, the original request parameters are not carried over to the new URL. Redirection is the default behavior that SharePoint is designed for, and we can't interfere with this redirection.
Secondly about allowed network IP addresses not being redirected:
According to the information you provided and the research I have done, I may understand that you seem to want non-allowed IP addresses to be redirected to other domain when accessing SharePoint and allowed IP addresses not to be redirected when accessing it. If there is anything wrong, please correct me.
However, SharePoint only supports settings related to access based on network addresses without redirection.
Based on the results of our internal testing, -NoAccessRedirectUrl
does set the redirect address for no access, but the -LockState NoAccess
we set before using it will disable all users from accessing the site, including administrators.
If you position to redirect traffic to a specific domain, it may be advisable to use some network-level tools such as DNS or a firewall.
Since we lack information about these network level settings, if you have questions about this you can ask in the relevant forums. Please kindly notice that I am always on standby to support you. If there is anything else I can do for you, please do not hesitate to reach me.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. It will be beneficial to more community members reading here. Your contribution will be highly appreciated.