| Commit | Line | Data |
|---|---|---|
| e11daebd AB |
1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <configuration> | |
| 3 | <system.webServer> | |
| 26392c86 | 4 | <!-- Don't show directory listings for URLs which map to a directory. --> |
| e11daebd AB |
5 | <directoryBrowse enabled="false" /> |
| 6 | <rewrite> | |
| 7 | <rules> | |
| 8 | <rule name="Protect files and directories from prying eyes" stopProcessing="true"> | |
| 26392c86 | 9 | <match url="\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$" /> |
| e11daebd AB |
10 | <action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." /> |
| 11 | </rule> | |
| 12 | <rule name="Force simple error message for requests for non-existent favicon.ico" stopProcessing="true"> | |
| 13 | <match url="favicon\.ico" /> | |
| 14 | <action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="File Not Found" statusDescription="The requested file favicon.ico was not found" /> | |
| 15 | </rule> | |
| 16 | <!-- Rewrite URLs of the form 'x' to the form 'index.php?q=x'. --> | |
| 26392c86 | 17 | <rule name="Short URLs" stopProcessing="true"> |
| e11daebd AB |
18 | <match url="^(.*)$" ignoreCase="false" /> |
| 19 | <conditions> | |
| 20 | <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> | |
| 21 | <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> | |
| 22 | <add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" /> | |
| 23 | </conditions> | |
| 24 | <action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" /> | |
| 25 | </rule> | |
| 26 | </rules> | |
| 27 | </rewrite> | |
| 28 | ||
| 29 | <httpErrors> | |
| 30 | <remove statusCode="404" subStatusCode="-1" /> | |
| 31 | <error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" /> | |
| 32 | </httpErrors> | |
| 33 | ||
| 34 | <defaultDocument> | |
| 26392c86 | 35 | <!-- Set the default document --> |
| e11daebd AB |
36 | <files> |
| 37 | <remove value="index.php" /> | |
| 38 | <add value="index.php" /> | |
| 39 | </files> | |
| 40 | </defaultDocument> | |
| 41 | </system.webServer> | |
| 42 | </configuration> | |
| 43 |