-
Notifications
You must be signed in to change notification settings - Fork 344
/
web.config.sample
32 lines (31 loc) · 1.39 KB
/
web.config.sample
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
<!----
This sample IIS config file provides a simple approximation of the official .htaccess included in this project.
If you're running CFDocs on a windows dev server, add the <rewrite> rule below to your web.config.
Also, to get the search typeahead working your server must return /en/data/index.json with MIME application/json
to do so, include the <mimeMap> below in your web.config file as well.
Tested with IIS 7.5
-->
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite /t to /tags" stopProcessing="true">
<match url="^t/*$" />
<action type="Rewrite" url="/tags" />
</rule>
<rule name="Rewrite Tag Function to Doc" stopProcessing="true">
<match url="^([^./]+)$" />
<action type="Rewrite" url="/doc.cfm?name={R:1}" />
</rule>
<rule name="trycf rules" stopProcessing="true">
<match url="^try/([^./]+)/([0-9]+)/?" />
<action type="Rewrite" url="/trycf.cfm?name={R:1}&index={R:2}" />
</rule>
</rules>
</rewrite>
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
</system.webServer>
</configuration>