source: trunk/www/web.config.txt @ 4853

Revision 4853, 2.6 KB checked in by mattlevine, 7 weeks ago (diff)

Merge branch 'master' of github.com:blueriver/MuraCMS

  • Property svn:executable set to *
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<configuration>
3
4<!--
5        NOTES:
6                - This only works for IIS7+
7                - If you wish to allow for missing "index.cfm" from the URL:
8                        * make sure you have "IIS URL Rewrite Module 2.0" installed. Download available at http://www.iis.net/download/URLRewrite
9                        * rename this document to "web.config" without the quotation marks
10                        * choose one of the rewrite rules below to enable
11-->
12
13<system.webServer>
14        <rewrite>
15                <rules>
16
17                <!--
18                        Allow for missing SiteID AND index.cfm from URL
19                        NOTES:
20                                - set enabled="true" to turn on!
21                                - make sure "Mura CMS Rewrite Option 2" is enabled="false"
22                                - update /config/settings.ini.cfm with the settings below:
23                                        siteidinurls=0
24                                        indexfileinurls=0
25                                - reload Mura CMS
26                -->
27
28                <rule name="Mura CMS Rewrite TAG Option 1">
29                <match url="^([a-zA-Z0-9/-]+/tag/.+|tag/.+)$" />
30                <action type="Rewrite" url="/index.cfm/{R:1}" logRewrittenUrl="true" />
31                </rule>
32
33                <rule name="Mura CMS Rewrite Option 1" enabled="true">
34                        <match url="^([a-zA-Z0-9/-]+)$" ignoreCase="false" />
35                        <conditions logicalGrouping="MatchAll">
36                                <add input="{DOCUMENT_ROOT}{URL}" matchType="IsDirectory" ignoreCase="false" negate="true" />
37                        </conditions>
38                        <action type="Rewrite" url="/index.cfm{URL}" />
39                </rule>
40
41                <!--
42                        Keep SiteID but allow for missing index.cfm from URL
43                                NOTES:
44                                        - set enabled="true" to turn on!
45                                        - make sure "Mura CMS Rewrite Option 1" is enabled="false"
46                                        - update /config/settings.ini.cfm with the settings below:
47                                                siteidinurls=1
48                                                indexfileinurls=0
49                                        - reload Mura CMS
50                -->
51
52                <rule name="Mura CMS Rewrite TAG Option 2" enabled="false">
53                <match url="^([a-zA-Z0-9-]{1,})/([a-zA-Z0-9/-]+/tag/.+|tag/.+)$" ignoreCase="false" />
54                <conditions logicalGrouping="MatchAll">
55               <add input="{DOCUMENT_ROOT}{URL}" matchType="IsDirectory" ignoreCase="false" negate="true" />
56                </conditions>
57                <action type="Rewrite" url="/{R:1}/index.cfm/{R:2}" />
58                </rule>
59
60                <rule name="Mura CMS Rewrite Option 2" enabled="false">
61                        <match url="^([a-zA-Z0-9-]{1,})/([a-zA-Z0-9/-]+)$" ignoreCase="false" />
62                        <conditions logicalGrouping="MatchAll">
63                                <add input="{DOCUMENT_ROOT}{URL}" matchType="IsDirectory" ignoreCase="false" negate="true" />
64                        </conditions>
65                        <action type="Rewrite" url="/{R:1}/index.cfm/{R:2}" />
66                </rule>
67               
68        </rules>
69</rewrite>
70
71<defaultDocument>
72        <files>
73                <remove value="index.cfm" />
74                <add value="index.cfm" />
75        </files>
76</defaultDocument>
77
78</system.webServer>
79</configuration>
Note: See TracBrowser for help on using the repository browser.