Click here to Skip to main content
14,696,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written the following url rewrite module to remove server version information in response header by installing UrlRewrite for IIS.

This is working fine in normal flows. However when an error page(like 500 or 404) is rendered I am able to see the IIS version information.

I need to know how to handle this rewrite for error pages as well. Thank you all in advance.

What I have tried:

By configuring URLRewrite in IIS - Works only for success page (200)
         <rule name="Remove Server header">
           <match filterByTags="None" serverVariable="" pattern=".+" />
           <action type="Rewrite" value="Some Name" />

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900