IIS 7.5(Win2k8 R2)では、これらの要求に対して新しいルールを作成しようとしています。
http://www.domain.com/userprofile
https://www.domain.com/userprofile
http://domain.com/userprofile
https://domain.com/userprofile
に書き換え:
http://www.domain.com/users/?username=userprofile
(or whatever the protocol/domain is)
私が書いた正規表現は次のとおりです。
^(http|https)://(www\.domain.com|domain\.com)/([a-zA-Z0-9-]{6,35})
書き直しは次のとおりです。
{R:1}://{R:2}/users/?username={R:3}
しかし、これは機能していません。プロトコルが必要ないからですか?また、リクエストがファイルまたはディレクトリではないという条件を追加しました。
また、ルールを変更するたびにIISを再起動する必要がありますか?