Last active
December 19, 2015 08:29
-
-
Save natemcmaster/5925848 to your computer and use it in GitHub Desktop.
Configuring CakePHP on Azure
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="Redirect static resources" stopProcessing="true"> | |
<match url="^(ico|img|css|files|js|font)(.*)$" /> | |
<action type="Rewrite" url="app/webroot/{R:1}{R:2}" appendQueryString="false" /> | |
</rule> | |
<rule name="Imported Rule 1" stopProcessing="true"> | |
<match url="^(.*)$" ignoreCase="false" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true" /> | |
</rule> | |
<rule name="Imported Rule 2" stopProcessing="true"> | |
<match url="^$" ignoreCase="false" /> | |
<action type="Rewrite" url="/" /> | |
</rule> | |
<rule name="Imported Rule 3" stopProcessing="true"> | |
<match url="(.*)" ignoreCase="false" /> | |
<action type="Rewrite" url="/{R:1}" /> | |
</rule> | |
<rule name="Imported Rule 4" stopProcessing="true"> | |
<match url="^(.*)$" ignoreCase="false" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="index.php?url={R:1}" 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