Skip to content

Instantly share code, notes, and snippets.

@serdarb
Created September 12, 2012 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serdarb/3705599 to your computer and use it in GitHub Desktop.
Save serdarb/3705599 to your computer and use it in GitHub Desktop.
Web.Config To Handle all requests in one handler
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpHandlers>
<add verb="GET,HEAD"
path="*.css,*.js,*.xml,*.txt,*.swf,*.jpg,*.jpeg,*.gif,*.png,*.bmp,*.ico,*.pdf,*.xls,*.doc,*.ppt,*.xlsx,*.docx,*.pptx,*.swf,*.zip,*.rar"
type="System.Web.StaticFileHandler" />
<add verb="*" path="*" type="WebApplication1.AllRequestsHandler"/>
</httpHandlers>
</system.web>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment