IIS6 301 redirection in Windows Server (description of parameters after parameters)

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.