Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
drupal/web.config
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
46 lines (43 sloc)
2.15 KB
This file contains 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> | |
<!-- Don't show directory listings for URLs which map to a directory. --> | |
<directoryBrowse enabled="false" /> | |
<rewrite> | |
<rules> | |
<rule name="Protect files and directories from prying eyes" stopProcessing="true"> | |
<match url="\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock))$" /> | |
<action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." /> | |
</rule> | |
<rule name="Force simple error message for requests for non-existent favicon.ico" stopProcessing="true"> | |
<match url="favicon\.ico" /> | |
<action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="File Not Found" statusDescription="The requested file favicon.ico was not found" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
</conditions> | |
</rule> | |
<!-- Rewrite URLs of the form 'x' to the form 'index.php?q=x'. --> | |
<rule name="Short URLs" stopProcessing="true"> | |
<match url="^(.*)$" ignoreCase="false" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> | |
<add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" /> | |
</rule> | |
</rules> | |
</rewrite> | |
<httpErrors> | |
<remove statusCode="404" subStatusCode="-1" /> | |
<error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" /> | |
</httpErrors> | |
<defaultDocument> | |
<!-- Set the default document --> | |
<files> | |
<remove value="index.php" /> | |
<add value="index.php" /> | |
</files> | |
</defaultDocument> | |
</system.webServer> | |
</configuration> | |