Redirect to URL at the same time, if you want to redirect the plus $s$q with the parameters above, select the exact url+ for this resource, and then remove the $s$q if there are no parameters.
Related $s and q mean as follows
To achieve the overall site 301 Jump, set the IIS site properties home directory redirect to URL write http://www.newdomain.com$s$q
and select the exact URL entered above and the permanent redirect for the resource. The URL parameters of the old domain name can be passed to the new domain name completely.
$S
Code
Passes the suffix of the requested URL to the new URL. The suffix is the part of the initial URL that is reserved after the redirected URL is substituted.
If the exact_destination flag is not set, the name of the resulting destination URL will have the name of the requested file (as the folder name) and the file name itself.
If you map to a virtual directory for the following Web sites:
Http://fabrikam/Scripts
The configuration redirects to the following exact URL:
Http://fabrikam/newscripts$s
A new request for the following URL:
Http://fabrikam/Scripts/Program.exe
Automatically redirects to the following URL:
Http://fabrikam/NewScripts/Program.exe
$P
Code
Passes the parameters in the initial URL, such as the QueryString parameter, to the new URL, excluding the question mark (?). If you map to a virtual directory for the following Web sites:
Http://fabrikam/Scripts
Configure redirects to the following URL:
Http://fabrikam/newscripts$p
A new request for the following URL:
Http://fabrikam/Scripts/File.asp?var1=5&var2=6
Automatically redirects to the following URL:
Http://fabrikam/NewScriptsvar1=5&var2=6
$Q
Code
Passes the parameters in the initial URL, such as the QueryString parameter, to the new URL, including the question mark (?). If you map to a virtual directory for the following Web sites:
Http://fabrikam/Scripts
The configuration redirects to the following exact URL:
Http://fabrikam/newscripts$s$q
A new request for the following URL:
Http://fabrikam/Scripts/File.asp?var1=5&var2=6
Automatically redirects to the following URL:
Http://fabrikam/NewScripts/File.asp?var1=5&var2=6