SHOW:
|
|
- or go back to the newest paste.
1 | <?xml version="1.0" encoding="UTF-8"?> | |
2 | <configuration> | |
3 | <system.webServer> | |
4 | <rewrite> | |
5 | <rules> | |
6 | <clear /> | |
7 | <rule name="Force SSL" enabled="false" stopProcessing="true"> | |
8 | <match url=".*" /> | |
9 | <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> | |
10 | <add input="{HTTPS}" pattern="off" /> | |
11 | </conditions> | |
12 | <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" /> | |
13 | </rule> | |
14 | <rule name="Root redirect" patternSyntax="ECMAScript" stopProcessing="true"> | |
15 | <match url="^([^/]*)$" /> | |
16 | <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> | |
17 | <action type="Redirect" url="{R:1}/" /> | |
18 | </rule> | |
19 | <rule name="HG: Url rewrite" stopProcessing="true"> | |
20 | <match url="^hg/(.*)" /> | |
21 | <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> | |
22 | - | <action type="Rewrite" url="http://hg.c-inform.local/{R:1}" /> |
22 | + | <action type="Rewrite" url="http://hg.example.local/{R:1}" /> |
23 | </rule> | |
24 | <rule name="SVN: Url rewrite" stopProcessing="true"> | |
25 | <match url="^svn/(.*)" /> | |
26 | <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> | |
27 | - | <action type="Rewrite" url="http://svn.c-inform.local/{R:1}" /> |
27 | + | <action type="Rewrite" url="http://svn.example.local/{R:1}" /> |
28 | </rule> | |
29 | </rules> | |
30 | <outboundRules> | |
31 | <rule name="Content rewrite" preCondition="IsHtml"> | |
32 | <match filterByTags="A, Img, Link, Script" pattern="^/(.*)" /> | |
33 | <action type="Rewrite" value="/src/{C:1}/{R:1}" /> | |
34 | <conditions> | |
35 | <add input="{URL}" pattern="src/([^/]*)/(.*)" /> | |
36 | </conditions> | |
37 | </rule> | |
38 | <preConditions> | |
39 | <preCondition name="IsHtml"> | |
40 | <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /> | |
41 | </preCondition> | |
42 | </preConditions> | |
43 | </outboundRules> | |
44 | </rewrite> | |
45 | <urlCompression doStaticCompression="false" doDynamicCompression="false" /> | |
46 | </system.webServer> | |
47 | </configuration> |