forked from armchairdeity/MuraCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config.txt
84 lines (72 loc) · 2.63 KB
/
web.config.txt
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!--
NOTES:
- This only works for IIS7+
- If you wish to allow for missing "index.cfm" from the URL:
* make sure you have "IIS URL Rewrite Module 2.0" installed. Download available at http://www.iis.net/download/URLRewrite
* rename this document to "web.config" without the quotation marks
* choose one of the rewrite rules below to enable
-->
<system.webServer>
<rewrite>
<rules>
<!--
Allow for missing SiteID AND index.cfm from URL
NOTES:
- set enabled="true" to turn on!
- make sure "Mura CMS Rewrite Option 2" is enabled="false"
- update /config/settings.ini.cfm with the settings below:
siteidinurls=0
indexfileinurls=0
- reload Mura CMS
-->
<rule name="Mura CMS Rewrite TAG Option 1">
<match url="^([a-zA-Z0-9/-]+/tag/.+|tag/.+)$" />
<action type="Rewrite" url="/index.cfm/{R:1}" logRewrittenUrl="true" />
</rule>
<rule name="Mura CMS Rewrite Option 1" enabled="true">
<match url="^([a-zA-Z0-9/-]+)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{DOCUMENT_ROOT}{URL}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="/index.cfm{URL}" />
</rule>
<!--
Keep SiteID but allow for missing index.cfm from URL
NOTES:
- set enabled="true" to turn on!
- make sure "Mura CMS Rewrite Option 1" is enabled="false"
- update /config/settings.ini.cfm with the settings below:
siteidinurls=1
indexfileinurls=0
- reload Mura CMS
-->
<rule name="Mura CMS Rewrite TAG Option 2" enabled="false">
<match url="^([a-zA-Z0-9-]{1,})/([a-zA-Z0-9/-]+/tag/.+|tag/.+)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{DOCUMENT_ROOT}{URL}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="/{R:1}/index.cfm/{R:2}" />
</rule>
<rule name="Mura CMS Rewrite Option 2" enabled="false">
<match url="^([a-zA-Z0-9-]{1,})/([a-zA-Z0-9/-]+)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{DOCUMENT_ROOT}{URL}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="/{R:1}/index.cfm/{R:2}" />
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<remove value="index.cfm" />
<add value="index.cfm" />
</files>
</defaultDocument>
<staticContent>
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/octet-stream" />
</staticContent>
</system.webServer>
</configuration>