Rewrite maps in IIS7 — how to make the match optionally include a trailing slash?

后端 未结 2 1236
既然无缘
既然无缘 2021-02-07 12:51

I have read the top 30 Google hits for several combinations of IIS rewrite map condition and so on, but I can\'t find any decent documentation, either on a micros

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-07 13:02

    Firstly, don't use dot, it matches everything and is naturally greedy. Use character negation instead: ([^\n]+). Try this, then re-run, and if that doesn't work, try adding /? again on the pattern attribute.

提交回复
热议问题