-
Notifications
You must be signed in to change notification settings - Fork 15
/
netlify.toml
55 lines (44 loc) · 808 Bytes
/
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
[build]
command = "npm run build"
publish = "dist"
# redirect to english, spanish or german landing pages.
[[redirects]]
from = "/"
to = "/de"
status = 302
force= true
conditions = {Language = ["de"]}
[[redirects]]
from = "/"
to = "/es"
status = 302
force = true
conditions = {Language = ["es"]}
[[redirects]]
from = "/"
to = "/fa"
status = 302
force = true
conditions = {Language = ["fa"]}
[[redirects]]
from = "/"
to = "/en"
status = 302
force = true
# redirect the 404 pages to your specific variant.
[[redirects]]
from = "/de/*"
to = "/de/404"
status = 404
[[redirects]]
from = "/es/*"
to = "/es/404"
status = 404
[[redirects]]
from = "/fa/*"
to = "/fa/404"
status = 404
[[redirects]]
from = "/en/*"
to = "/en/404"
status = 404