Skip to content
This repository
branch: develop
file 98 lines (86 sloc) 3.392 kb
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 85 86 87 88 89 90 91 92 93 94 95 96 97 98
<?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 Option 1" enabled="true">
<match url="^([a-zA-Z0-9/].+)$" ignoreCase="true" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="/index.cfm/{R:1}" appendQueryString="true" />
</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 Option 2" enabled="false">
<match url="^([a-zA-Z0-9]{1,})/([a-zA-Z0-9/].+)$" ignoreCase="true" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="/{R:1}/index.cfm/{R:2}" appendQueryString="true" />
</rule>

<!--
Rewrite rules to allow each site to have their own respective sitemap.xml and robots.txt for SEO
NOTES:
- Works well with Meld Google Sitemaps Plugin
- Must duplicate rules for each site needed
- Replace domain and siteID with respective domain and siteID per instance
- Don't forget to change enabled="true" to turn on the rules!
-->
       
<rule name="Sitemap" stopProcessing="true" enabled="false">
<match url="^sitemap.xml$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^www.domain.com$" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="/siteID/sitemap.xml" />
</rule>

<rule name="Robots" stopProcessing="true" enabled="false">
<match url="^robots.txt$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^www.domain.com$" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="/siteID/robots.txt" />
</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>
Something went wrong with that request. Please try again.