-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweb.config
37 lines (37 loc) · 1.87 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Block access to XML files." stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{URL}" pattern="\.xml$" />
</conditions>
<action type="AbortRequest" />
</rule>
<rule name="Redirect to HTTPS" enabled="false" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
<rule name="GetSimple Blog (Plugin)" enabled="true" stopProcessing="true">
<match url="(^feed)/([|^post|^tag|^page|^archive|^category]+)/([^/.]+)/?$" ignoreCase="true" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="index.php?id={R:1}&{R:2}={R:3}" appendQueryString="true" />
</rule>
<rule name="Pretty URLs" enabled="true" stopProcessing="true">
<match url="([^/.]+)/$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?id={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>