我想重写这个:domain.com/gallery/123123/name-of-the-image/
要从此处显示内容:domain.com/gallery/showImage/name-of-the-image-123123
这是我当前的代码:
<rule name="Gallery - Single image">
<match url="^gallery/([0-9])/([a-z-/]+)/?$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="gallery/showImage/{R:2}-{R:1}" />
</rule>
我应该如何更改重写代码以使其工作?
非常感谢提前