Click here to Skip to main content
15,883,901 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)
<rewrite>
      <outboundRules>        
         <rule name="Remove Server header">
           <match filterByTags="None" serverVariable="" pattern=".+" />
           <action type="Rewrite" value="Some Name" />
         </rule>        
      </outboundRules>
    </rewrite>
Posted

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