IIS I / O Transitions

What types of input can you use in IIS rewrite rules? I mean the following:

 <conditions> <add input="{HTTP_HOST}" type="Pattern" pattern="^www\.mysite\.com$" negate="true"> </conditions> 
  • HTTP_HOST
  • URL
  • REQUEST_FILENAME
+6
source share
2 answers

You can try the following input types. See also reference documents for the URL Rewrite module.

  • CACHE_URL
  • DOCUMENT_ROOT
  • HTTP_URL
  • HTTP_HOST
  • PATH_INFO
  • PATH_TRANSLATED
  • QUERY_STRING
  • REQUEST_FILENAME
  • REQUEST_URI
  • SCRIPT_FILENAME
  • SCRIPT_NAME
  • SCRIPT_TRANSLATED
  • UNENCODED_URL
  • URL
  • URL_PATH_INFO
  • APP_POOL_ID
  • APPL_MD_PATH
  • APPL_PHYSICAL_PATH
  • GATEWAY_INTERFACE
  • SERVER_SOFTWARE
  • SSI_EXEC_DISABLED
  • SERVER_NAME
+11
source

You can also use IIS (7 and above, I believe):

Open IIS => Go to your site => Double-click URL Rewrite => Change rule => Add or change condition => When you start typing '{' in the "Input Condition" field, the list will display the types.

Editing an inbound rule

+12
source

Source: https://habr.com/ru/post/912285/


All Articles