Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS Rewrite Input Types

What are the input types you can use in IIS rewrite rules? The ones I mean are like as follows:

<conditions>
    <add input="{HTTP_HOST}" type=”Pattern” pattern="^www\.mysite\.com$" negate="true"> 
</conditions>
  • HTTP_HOST
  • URL
  • REQUEST_FILENAME
  • ?
like image 765
McGarnagle Avatar asked Apr 03 '12 04:04

McGarnagle


People also ask

What is Request_uri in URL Rewrite?

Returns exact URL what you requested. For example, if you have default.aspx file in the root and you will access your website root.

What does IIS rewrite do?

IIS URL Rewrite 2.1 enables Web administrators to create powerful rules to implement URLs that are easier for users to remember and easier for search engines to find. By using rule templates, rewrite maps, .


1 Answers

You can try the below input types. See also reference docs 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
like image 192
Deepu Madhusoodanan Avatar answered Nov 16 '22 00:11

Deepu Madhusoodanan