UrlEncode string function in IIS URL rewrite module. In the IIS URL rewrite module, the url should be rewritten as encoded URL for all except these two namely
1) "/sitefinity/" and
Require help on writing rules for this condition.
a sample is => (URL Rewrite Module Configuration Reference | Microsoft Docs)