We are currently using URL rewrites to replace images and links. But we would like to replace some text contained within a tag. Has anyone achieved this before?

I did try to add a custom tag

            <customTags>
                <tags name="span">
                    <tag name="span" attribute="" />
                </tags>
            </customTags>

But wasn't sure what to add as the attribute if its just the text?

有帮助吗?

解决方案

You cannot, as IIS URL Rewrite is only designed for URL rewrite.

If you do want to post-process requests, write a HttpModule or IIS module, and hook to the relevant events,

http://www.iis.net/learn/get-started/introduction-to-iis/iis-modules-overview

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top