Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
107 lines (94 sloc) 3.611 kB
<?xml version="1.0" encoding="UTF-8"?>
<!-- REQUIREMENTS:
- IIS 7 or greater
- Removing 'index.cfm' requires IIS URL Rewrite Module 2.0 (http://www.iis.net/download/URLRewrite)
-->
<!-- AVAILABLE OPTIONS:
Rule 1: index.cfm and siteid in URL disabled
Rule 2: index.cfm in URL disabled
SEO Rules: allow for separate sitemap and robots files per site
-->
<!-- USAGE:
- Rename this document to "web.config" (without the quotation marks)
or copy the <rewrite><rules> section below into your working web.config
- Enable the rewrite options below by changing the enabled value to "true"
- Edit /config/settings.ini.cfm as noted in the comments before each rule
- Reload Mura CMS
-->
<configuration>
<system.webServer>
<rewrite>
<rules>
<!--
Rule 1: URLs without SiteID or index.cfm
Usage:
- set enabled="true" below
- set Mura CMS Rule 2 to enabled="false"
- set these values in /config/settings.ini.cfm:
siteidinurls=0
indexfileinurls=0
- reload Mura CMS
-->
<rule name="Mura CMS Rule 1: siteid and index.cfm" enabled="true">
<match url="^(.*)" 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>
<!--
Rule 2: URLs without index.cfm
Usage:
- set enabled="true" below
- set Mura CMS Rule 1 to enabled="false"
- set these values in /config/settings.ini.cfm:
siteidinurls=1
indexfileinurls=0
- reload Mura CMS
-->
<rule name="Mura CMS Rule 2: index.cfm" enabled="false">
<match url="^([a-zA-Z0-9_\-]{1,})/(.*)" ignoreCase="true" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{QUERY_STRING}" pattern="(hash)" negate="true" />
</conditions>
<action type="Rewrite" url="/{R:1}/index.cfm/{R:2}" appendQueryString="true" />
</rule>
<!--
SEO Rules: individual sitemap.xml and/or robots.txt for each site
Recommended for use with Meld Google Sitemaps Plugin
Usage:
- set enabled="true" below
- duplicate and rename rules for each site
- replace www.domain.com and /siteID/ in each rule
-->
<rule name="Mura CMS SEO: 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="Mura CMS SEO: 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>
Jump to Line
Something went wrong with that request. Please try again.