forked from GladysAssistant/v4-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
90 lines (76 loc) · 1.43 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
[[headers]]
for = "*.png"
[headers.values]
Cache-Control = "public, max-age=86400"
[[headers]]
for = "*.jpg"
[headers.values]
Cache-Control = "public, max-age=86400"
[[redirects]]
from = "/"
to = "/fr"
status = 302
force = true
conditions = {Language = ["fr"]}
[[redirects]]
from = "/"
to = "/en"
status = 302
force = true
[[redirects]]
from = "/fr/article/:slug"
to = "/fr/blog/:slug"
status = 301
force = true
[[redirects]]
from = "/en/article/:slug"
to = "/en/blog/:slug"
status = 301
force = true
[[redirects]]
from = "/feed.xml"
to = "/fr/blog/rss.xml"
status = 301
force = true
[[redirects]]
from = "/pricing"
to = "/fr/plus"
status = 302
force = true
conditions = {Language = ["fr"]}
[[redirects]]
from = "/pricing"
to = "/en"
status = 302
force = true
[[redirects]]
from = "/:lang/installation"
to = "/:lang/docs"
status = 301
force = true
[[redirects]]
from = "/fr/gladys-starter-pack"
to = "/fr/plus"
status = 301
force = true
[[redirects]]
from = "/fr/gladys-community-package"
to = "/fr/plus"
status = 301
force = true
[[redirects]]
from = "/fr/pricing"
to = "/fr/plus"
status = 301
force = true
[[redirects]]
from = "/pricing/success"
to = "/fr/payment_success"
status = 302
force = true
conditions = {Language = ["fr"]}
[[redirects]]
from = "/pricing/success"
to = "/en/payment_success"
status = 302
force = true