Skip to content

Instantly share code, notes, and snippets.

@Blackmist
Created September 19, 2012 17:01
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 Blackmist/3750802 to your computer and use it in GitHub Desktop.
Save Blackmist/3750802 to your computer and use it in GitHub Desktop.
URLRewrite to rewrite requests to the /public folder
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<modules runAllManagedModulesForAllRequests="false" />
<rewrite>
<rules>
<clear />
<rule name="RewriteToPublic" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
<match url="(.*)"/>
<action type="Rewrite" url="public/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment