-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiirf.ini
90 lines (67 loc) · 3.31 KB
/
iirf.ini
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
# Redirect rules using IIRF for CoApp.org site.
StatusInquiry ON
RewriteFilterPriority HIGH
RewriteLog c:\tools\logs\iirf
RewriteLogLevel 0
CondSubstringBackrefFlag %
# fix msis in resources to get from repository.
RewriteRule ^/resources/coapp.toolkit.msi$ /repository/coapp.toolkit.msi [I]
RewriteRule ^/resources/coapp.devtools.msi$ /repository/coapp.toolkit.msi [I]
RewriteRule ^/startup/.*$ /index.html [I]
RedirectRule ^/github$ https://github.com/organizations/coapp [I]
# make sure triggers are working even without the trailing slash
RewriteRule ^/upload$ /upload/ [I]
RewriteRule ^/trigger$ /trigger/ [I]
#canonical CoApp urls
RewriteRule ^/feed$ /repository/packages.xml [I]
RewriteRule ^/feed/$ /repository/packages.xml [I]
RewriteRule ^/packages?(\.atom)?\.xml$ /repository/packages.xml [I]
#canonical locations for our packages.
RewriteRule ^/install$ /repository/coapp.toolkit.msi [I]
RewriteRule ^/devtools$ /repository/coapp.devtools.msi [I]
RewriteRule ^/install/$ /repository/coapp.toolkit.msi [I]
RewriteRule ^/devtools/$ /repository/coapp.devtools.msi [I]
#canonical locations for certain resources
RewriteRule ^/cleaner/$ /resources/coapp.cleaner.exe [I]
RewriteRule ^/cleaner$ /resources/coapp.cleaner.exe [I]
RewriteRule ^/coapp.cleaner/$ /resources/coapp.cleaner.exe [I]
RewriteRule ^/coapp.cleaner$ /resources/coapp.cleaner.exe [I]
RewriteRule ^/coapp.cleaner.zip$ /resources/coapp.cleaner.zip [I]
RewriteRule ^/coapp.cleaner.exe$ /resources/coapp.cleaner.zip [I]
#offload stuff to blob server
RedirectRule ^/resources/(.+)$ http://downloads.coapp.org/resources/#L$1#E [I,R=302]
RedirectRule ^/repository/(.+)$ http://downloads.coapp.org/repository/#L$1#E [I,R=302]
# 'packages' and 'videos' go via the CDN
RedirectRule ^/packages/(.+)$ http://cdn.coapp.org/repository/#L$1#E [I,R=302]
RedirectRule ^/cdn/(.+)$ http://cdn.coapp.org/repository/#L$1#E [I,R=302]
RedirectRule ^/videos/(.+)$ http://cdn.coapp.org/videos/#L$1#E [I,R=302]
# use /proxy/ to download via the coapp webserver.
ProxyPass ^/proxy/(.*)$ http://downloads.coapp.org/repository/#L$1#E
# Checks for local file existence so that .css, .js and other static
# files aren't rewritten
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^/.*$ - [L]
# /pages rewrites /foo to /pages/foo.html if it exists
RewriteCond %{REQUEST_FILENAME} ^(.*)\\(.*)$
RewriteCond %1\\pages\\%2.html -f [I]
RedirectRule ^/([^/]*)$ /pages/$1.html
# /pages rewrites /foo/ to /pages/foo.html if it exists
RewriteCond %{REQUEST_FILENAME} ^(.*)\\(.*)\\$
RewriteCond %1\\pages\\%2.html -f [I]
RedirectRule ^/([^/]*)/$ /pages/$1.html
# /pages rewrites /foo to /help/foo.html if it exists
RewriteCond %{REQUEST_FILENAME} ^(.*)\\(.*)$
RewriteCond %1\\help\\%2.html -f [I]
RedirectRule ^/([^/]*)$ /help/$1.html
# /pages rewrites /foo/ to /help/foo.html if it exists
RewriteCond %{REQUEST_FILENAME} ^(.*)\\(.*)\\$
RewriteCond %1\\help\\%2.html -f [I]
RedirectRule ^/([^/]*)/$ /help/$1.html
# /pages rewrites /help/foo to /help/foo.html if it exists
RewriteCond %{REQUEST_FILENAME} ^(.*)\\(.*)$
RewriteCond %1\\%2.html -f [I]
RedirectRule ^/(.*)$ /$1.html
RewriteCond
RedirectRule ^/$ /index.html
RewriteCond %{REQUEST_FILENAME} !-f
RedirectRule ^(.*)$ /not-found.html#page=$1 [L]