This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
164 lines (134 loc) · 2.52 KB
/
netlify.toml
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
[context.deploy-preview.environment]
HUGO_VERSION = "0.104.3"
[context.production.environment]
HUGO_VERSION = "0.104.3"
[context.branch-deploy.environment]
HUGO_VERSION = "0.104.3"
[build]
publish = "public"
command = "gulp deploy"
[build.environment]
TZ = "America/Montevideo"
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = ["cache"]
#### Twitter pages 410
[[redirects]]
from = "/twitter"
to = "/"
status = 410
force = true
[[redirects]]
from = "/en/twitter"
to = "/"
status = 410
force = true
#### Netlify subdomains redirects
[[redirects]]
from = "https://coronavirusuy.netlify.com/*"
to = "https://covid19uy.com/:splat"
status = 301
force = true
[[redirects]]
from = "https://covid19uy.netlify.com/*"
to = "https://covid19uy.com/:splat"
status = 301
force = true
[[redirects]]
from = "https://coronavirusuy.netlify.app/*"
to = "https://covid19uy.com/:splat"
status = 301
force = true
[[redirects]]
from = "https://covid19uy.netlify.app/*"
to = "https://covid19uy.com/:splat"
status = 301
force = true
#### Enflish pages
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["en"]}
force = true
#### Netlify doesn't allow condition negation. As a workaround I'm redirecting the most popular languages to the English site.
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["zh"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["ar"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["pt"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["id"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["ja"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["ru"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["fr"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["de"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["it"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["tr"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["fa"]}
force = true
[[redirects]]
from = "/"
to = "/en/"
status = 302
conditions = {Language = ["vi"]}
force = true
#### Workaround end
#### 404 English page
[[redirects]]
from = "/en/*"
to = "/en/404.html"
status = 404
force = false