Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i want change page extension like
test.aspx to test.html

what is rule for it in web config
Posted

Microsoft has a pretty good tutorial[^] on how to set up URL rewriting, including how to configure it in your web.config.
 
Share this answer
 
XML
<configuration>
   <system.webServer>
      <security>
         <requestFiltering>
            <fileExtensions applyToWebDAV="false">
               <add fileExtension=".inc" allowed="false" />
            </fileExtensions>
         </requestFiltering>
      </security>
   </system.webServer>
</configuration>
 
Share this answer
 
 
Share this answer
 
Comments
CHill60 1-Mar-14 9:53am    
Instead of posting multiple solutions to the same question just post one. If you need to add to it use the "Improve solution" link. That way you won't lose so many rep points when you get downvoted.

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