Skip to content

Instantly share code, notes, and snippets.

@dimobelov
Last active September 7, 2018 07:13
Show Gist options
  • Save dimobelov/8619834b49e69345afc34c8259d54988 to your computer and use it in GitHub Desktop.
Save dimobelov/8619834b49e69345afc34c8259d54988 to your computer and use it in GitHub Desktop.
IIS Bludit configuration
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--add/replace these lines in <system.webServer> section ...-->
<directoryBrowse enabled="false" />
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="index.htm" />
<add value="index.html" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="bludit rule" 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>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment