Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top