Created
May 20, 2014 05:20
-
-
Save rXc3NtR1c/ce24e8a3667e50993f1c to your computer and use it in GitHub Desktop.
October CMS Web.Config
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> | |
<rewrite> | |
<rules> | |
<rule name="Imported Rule 1" stopProcessing="true"> | |
<match url="themes/.*/(layouts|pages|partials)/.*.htm" /> | |
<action type="Rewrite" url="index.php" /> | |
</rule> | |
<rule name="Imported Rule 2" stopProcessing="true"> | |
<match url="uploads/protected/.*" /> | |
<action type="Rewrite" url="index.php" /> | |
</rule> | |
<rule name="Imported Rule 3" stopProcessing="true"> | |
<match url="^" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" /> | |
<add input="{URL}" pattern="\.js" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.ico" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.jpg" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.gif" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.css" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.less" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.scss" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.png" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.swf" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.txt" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.xml" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.xls" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.eot" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.woff" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.ttf" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="\.svg" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="docs/.*" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="themes/.*" ignoreCase="false" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="index.php" /> | |
</rule> | |
<rule name="Imported Rule 4" stopProcessing="true"> | |
<match url="^" ignoreCase="false" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="index.php" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rXc3NtR1c & @nomad23, please give octobercms/docs@7d2167d a try and let me know how that works.