I tried:
1) First I tried an empty line:
<action type="Redirect" url="" redirectType="Permanent" appendQueryString="false" />
Result:
HTTP 500.52 - URL Rewrite Module Error. The substitution URL for the current action cannot be empty.
2) Maybe I should omit the url attribute:
<action type="Redirect" redirectType="Permanent" appendQueryString="false" />
Same result:
HTTP 500.52 - URL Rewrite Module Error. The substitution URL for the current action cannot be empty.
3) What about the ASP.NET path:
<action type="Redirect" url="~" redirectType="Permanent" appendQueryString="false" />
Trying to redirect to {APP_ROOT}/~ .
4) Last attempt:
<action type="Redirect" url="/" redirectType="Permanent" appendQueryString="false" />
As expected, it redirects to the server root ...
I would like to find some kind of clean general solution. (I cannot use the specific /myCurrentAppPath .)
web-applications url-rewriting iis iis-7 url-rewrite-module
TN.
source share