[英]Full HTTP URL for IIS URL Rewrite module
Is any possibility to match whole url in IIS URL Rewrite module? 是否有可能在IIS URL重写模块中匹配整个URL? I need to write the next condition:
我需要写下一个条件:
<add input="{FULL_URL}" negate="true" pattern="^https:\/\/www\..+[^/]$" />
I want to ignore all urls that starts with https://www
and ended with /
. 我想忽略所有以
https://www
开头和/
结束的url。 Does {FULL_URL}
or something else exist? 是否存在
{FULL_URL}
或其他内容?
In IIS rewrite exists variable {CACHE_URL}
which should be suitable for you. 在IIS中,重写变量
{CACHE_URL}
应该适合您。
This variable contains full URL including query string. 此变量包含完整的URL,包括查询字符串。 Ex:
http://localhost:8080/Home/About?id=5
例如:
http://localhost:8080/Home/About?id=5
You can find full list of variables with explanation here: https://msdn.microsoft.com/en-us/library/ms524602(v=vs.90).aspx 您可以在此处找到具有说明的变量的完整列表: https : //msdn.microsoft.com/zh-cn/library/ms524602(v=vs.90).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.