You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/configuration/commons.md
+26
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,13 @@
33
33
#
34
34
# checkNewVersion = false
35
35
36
+
# Tells traefik whether it should keep the trailing slashes in the paths (e.g. /paths/) or redirect to the no trailing slash paths instead (/paths).
37
+
#
38
+
# Optional
39
+
# Default: false
40
+
#
41
+
# keepTrailingSlash = false
42
+
36
43
# Providers throttle duration.
37
44
#
38
45
# Optional
@@ -103,6 +110,25 @@ If you encounter 'too many open files' errors, you can either increase this valu
103
110
-`defaultEntryPoints`: Entrypoints to be used by frontends that do not specify any entrypoint.
104
111
Each frontend can specify its own entrypoints.
105
112
113
+
-`keepTrailingSlash`: Tells Træfik whether it should keep the trailing slashes that might be present in the paths of incoming requests (true), or if it should redirect to the slashless version of the URL (default behavior: false)
114
+
115
+
!!! note
116
+
Beware that the value of `keepTrailingSlash` can have a significant impact on the way your frontend rules are interpreted.
117
+
The table below tries to sum up several behaviors depending on requests/configurations.
118
+
The current default behavior is deprecated and kept for compatibility reasons.
119
+
As a consequence, we encourage you to set `keepTrailingSlash` to true.
0 commit comments