Created
May 13, 2015 13:21
-
-
Save tjort/cc68d27b1c9dc980381f to your computer and use it in GitHub Desktop.
Web.config Rewrite Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<staticContent> | |
<remove fileExtension=".woff" /> | |
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> | |
<remove fileExtension=".ttf" /> | |
<mimeMap fileExtension=".ttf" mimeType="application/octet-stream" /> | |
<remove fileExtension=".svg" /> | |
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> | |
</staticContent> | |
<rewrite> | |
<clear /> | |
<rules> | |
<rule name="TransferToPublic" stopProcessing="true"> | |
<match url="^(app|assets|css|fonts|images|js|packages|favicon.ico)(.*)$" /> | |
<action type="Rewrite" url="public/{R:0}" /> | |
</rule> | |
<rule name="Rewrite requested file/folder to index.php" stopProcessing="true"> | |
<match url="^(.*)$" ignoreCase="false" /> | |
<action type="Rewrite" url="public/index.php/{R:0}" appendQueryString="true" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment