the IIS let you keep the resource name and parameters,
as described in this article:
http://support.microsoft.com/kb/313074
The parameters are:
$S | The $S variable passes the matched suffix of the requested URL. The matched suffix is the portion of the original URL that remains after the redirected URL is substituted. The server automatically performs this suffix substitution. The $S variable is used only in combination with other variables. | If /Scripts is redirected to /NewScripts and the original request is for /Scripts/Program.exe, the suffix is /Program.exe. |
$P | The $P variable passes the parameters in the original URL without the question mark that is used to specify the beginning of the query string. | If the original URL is /Scripts/MyScript.asp?number=1, the string "number=1" is mapped into the destination URL. |
$Q | The $Q variable passes the full query string (the question mark and the parameters) from the original URL. | If the original URL is /Scripts/MyScript.asp?number=1, the string "?number=1" is mapped into the destination URL. |
$V | The $V variable passes the requested URL, without the server name. | If the original URL is /Myserver/Scripts/MyScript.asp, the string "/Scripts/MyScript.asp" is mapped into the destination URL. |
$0 through $9 | The variables $0 through $9 pass the portion of the requested URL that matches the indicated wildcard. | |
! | Do not redirect. | Use this variable to prevent redirecting a folder or an individual file. |
Don't forget to make sure the "exact redirection" check box is on!
No comments:
Post a Comment