forked from bisq-network/bisq-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_redirects
231 lines (173 loc) · 7.01 KB
/
_redirects
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
---
layout: null
---
# build-time generated redirects
# redirect user based on Accept-Language setting
# see https://www.netlify.com/docs/redirects/
{% capture _redirects %}
{% assign urls_sorted = site.pages | map: "url" | sort %}
{% assign urls_filtered = "" | split: "," | pop %}
{% for url in urls_sorted %}
# if you know a better way to strstr() feel free
{% assign first_two = url | slice: 1, 2 %}
{% assign first_three = url | slice: 1, 3 %}
{% assign first_four = url | slice: 1, 4 %}
{% assign first_five = url | slice: 1, 5 %}
{% assign first_six = url | slice: 1, 6 %}
{% assign first_seven = url | slice: 1, 7 %}
# don't redirect /404
{% if first_three == "404" %}
{% continue %}
{% endif %}
# don't redirect /css
{% if first_three == "css" %}
{% continue %}
{% endif %}
# don't redirect /blog
{% if first_four == "blog" %}
{% continue %}
{% endif %}
# don't redirect /press
{% if first_five == "press" %}
{% continue %}
{% endif %}
# don't redirect /robots.txt
{% if first_six == "robots" %}
{% continue %}
{% endif %}
# don't redirect /roadmap
{% if first_seven == "roadmap" %}
{% continue %}
{% endif %}
# don't redirect /sitemap
{% if first_seven == "sitemap" %}
{% continue %}
{% endif %}
# don't redirect /_redirects
{% if first_six == "_redir" %}
{% continue %}
{% endif %}
# don't redirect /redirects.json
{% if first_five == "redir" %}
{% continue %}
{% endif %}
# don't redirect /funding-voices
{% if first_seven == "funding" %}
{% continue %}
{% endif %}
# don't redirect /benefactors
{% if first_seven == "benefac" %}
{% continue %}
{% endif %}
# don't redirect language-specific URIs
{% assign is_lang = 0 %}
{% for language in site.data.languages %}
# for de
{% if first_two == language.tag %}
{% assign is_lang = 1 %}
{% continue %}
{% endif %}
# for pt-PT
{% if first_five == language.tag %}
{% assign is_lang = 1 %}
{% continue %}
{% endif %}
{% endfor %}
# add URL to redirect list
{% if is_lang == 0 %}
{% assign urls_filtered = urls_filtered | push: url %}
{% endif %}
{% endfor %}
{% assign redirects = "" | split: "," | pop %}
{% for url in urls_filtered %}
{% for language in site.data.languages %}
{% if language.enabled %}
{% for accept_language in language.accept_languages %}
{% capture redirect %}{{url}} /{{language.tag}}{{url}} 302 Language={{accept_language}}{% endcapture %}
{% assign redirects = redirects | push: redirect %}
{% endfor %}
{% endif %}
{% endfor %}
{% endfor %}
{% capture newline %}
{% endcapture %}
{% endcapture %}
{{redirects | join: newline}}
#
# static redirects
#
# bitsquare.io
http://bitsquare.io/* https://bisq.network/:splat 301!
http://bitsquare.io https://bisq.network 301
https://bitsquare.io/* https://bisq.network/:splat 301!
https://bitsquare.io https://bisq.network 301
# bisq.io
http://bisq.io/* https://bisq.network/:splat 301!
http://bisq.io https://bisq.network 301
https://bisq.io/* https://bisq.network/:splat 301!
https://bisq.io https://bisq.network 301
# main page on docs for dao with links to further content
/docs/dao https://docs.bisq.network/dao.html 302
# main dao overview on docs
/docs/dao/intro https://docs.bisq.network/user-dao-intro.html 302
# dao user guide
/docs/dao/user-guide https://docs.bisq.network/getting-started-dao.html 302
# in depth concept overview
/phase-zero https://docs.bisq.network/dao/phase-zero.html 302
# tech spec
/docs/dao/specification https://docs.bisq.network/dao/specification.html 302
# for genesis distribution
/docs/dao/genesis https://docs.bisq.network/compensation.html#get-added-to-genesis 302
# setup full node docs
/docs/dao-full-node https://github.com/bisq-network/bisq/blob/master/docs/dao-setup.md 302
# not sure where it is used (not in app), keep it just in case.
/dao-testnet https://docs.bisq.network/user-dao-intro.html#now-you-try 302
# Overview about Bisq and the DAO (written by Chris), superseded by phase zero doc. Keep it for archive
/docs/dao/overview https://docs.bisq.network/dao/overview.html 302
/list-token https://bisq.network/list-asset 301
/list-asset https://docs.bisq.network/exchange/howto/list-asset.html 302
/intro https://docs.bisq.network/intro.html 302
/contrib-checklist /contributor-checklist 302
/contributor-checklist https://docs.bisq.network/contributor-checklist.html 302
/get-started https://docs.bisq.network/getting-started.html 302
/getting-started https://docs.bisq.network/getting-started.html 302
/contribute https://docs.bisq.network/contributor-checklist.html 301
/arbitration_system.pdf /docs/exchange/arbitration-system 301
/docs/arbitration-system.pdf /docs/exchange/arbitration-system 301
/docs/exchange/arbitration-system https://docs.google.com/document/d/1DXEVEfk4x1qN6QgIcb2PjZwU4m7W6ib49wCdktMMjLw 302
/whitepaper.pdf /docs/exchange/whitepaper 301
/bitsquare.pdf /docs/exchange/whitepaper 301
/docs/bitsquare.pdf /docs/exchange/whitepaper 301
/docs/exchange/whitepaper https://docs.bisq.network/exchange/whitepaper.html 302
/risk_analysis.pdf /docs/exchange/risk-analysis 301
/docs/risk-analysis.pdf /docs/exchange/risk-analysis 301
/docs/exchange/risk-analysis https://docs.google.com/document/d/1sHwU7K7C8Nl-fS4Z6X88L-NVJ_WBiKnsSpYpYfyqUXA/edit# 302
/mobile-notifications https://docs.bisq.network/bisq-mobile.html#notifications 302
# blog
/blog/tag/ /blog/ 302
/blog/tag/* /blog/ 302
/blog/category/ /blog/ 302
/blog/category/* /blog/ 302
/feed /blog/feed.atom 301
# misc
/team / 302
/events https://calendar.google.com/calendar/embed?src=adfiuiokq9jtac8t9keomc00b0%40group.calendar.google.com 302
/calendar /events 301
/volume https://docs.google.com/spreadsheets/d/1M8y2cIlHv5Hx5UAt4WZ961Ac8xaNSLiiavjxabNf0qc/edit#gid=1242111088 302
/release-stats http://www.somsubhra.com/github-release-stats/?username=bisq-network&repository=bisq 302
/survey https://goo.gl/forms/UcKr2D7WNYUZl3Cf1 302
/dao-proposals/:id https://github.com/bisq-network/proposals/issues/:id 302
/dao-proposals https://github.com/bisq-network/proposals/issues 302
/dao-compensation/:id https://github.com/bisq-network/compensation/issues/:id 302
/dao-compensation https://github.com/bisq-network/compensation/issues 302
/roles/:id https://github.com/bisq-network/roles/issues/:id 302
/roles https://github.com/bisq-network/roles/issues 302
/dao-reimbursement/:id https://github.com/bisq-network/support/issues/:id 302
/dao-reimbursement https://github.com/bisq-network/support/issues 302
/issues https://github.com/bisq-network/bisq/issues 302
/downloads/archive/:version.zip https://github.com/bisq-network/bisq/archive/:version.zip 302
/downloads/archive/:version.tar.gz https://github.com/bisq-network/bisq/archive/:version.tar.gz 302
/downloads/:version https://github.com/bisq-network/bisq/releases/tag/:version 302
/downloads/:version/:filename https://github.com/bisq-network/bisq/releases/download/:version/:filename 302
/source https://github.com/bisq-network 302
/source/* https://github.com/bisq-network/:splat 302