I was trying to use URL Rewrite Module Configuration Reference as a guide for composing my first rewrite rules using Microsoft URL Rewrite Module for IIS 7.0 CTP1 (x86). I discovered an error in the document. (I do l-o-v-e the module! Very nice.)
The section Accessing URL Parts from a Rewrite Rule states,
"The HTTP_HOST server variable will contain http://www.mysite.com/"
My experimentation indicated that the HTTP_HOST server variable does not contain:
-
the URI scheme (protocol),
-
the two forward slashes and the colon that delimit the scheme and the hostname,
-
or the forward slash that trails the hostname.
I believe the contents of the server variable are correct; therefore, the statment should be:
"The HTTP_HOST server variable will contain www.mysite.com"
Cordially,
Lee C.