Redirect IIS将规则%2520重写为%20

Redirect IIS将规则%2520重写为%20 ,redirect,iis,url-rewriting,double,Redirect,Iis,Url Rewriting,Double,新网址: 问题在于,在regexp中,应该使用\%,而不是%25,因为%25是编码的%。在您的情况下,它应该是: <rule name="Rewrite %2520"> <match url="^sites/SubSite/CCC/SharePoint%2520Portal" /> <action type="Rewrite" url="sites/SubSite/CCC/SharePoint%20Portal" /> 问题在于,在regexp中应该使

新网址:
问题在于,在regexp中,应该使用
\%
,而不是
%25
,因为%25是编码的%。在您的情况下,它应该是:

 <rule name="Rewrite %2520">
 <match url="^sites/SubSite/CCC/SharePoint%2520Portal" />
 <action type="Rewrite" url="sites/SubSite/CCC/SharePoint%20Portal" />

问题在于,在regexp中应该使用
\%
,而不是
%25
,因为%25是编码的%。在您的情况下,它应该是:

 <rule name="Rewrite %2520">
 <match url="^sites/SubSite/CCC/SharePoint%2520Portal" />
 <action type="Rewrite" url="sites/SubSite/CCC/SharePoint%20Portal" />