Skip to content

Commit 1ca69a2

Browse files
committed
Fehler im RegEx bei Redirect auf www
1 parent c646ad4 commit 1ca69a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

configs/traefik-dynamic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ http:
2626

2727
redirect-to-www:
2828
redirectRegex:
29-
regex: "^(https?://)(?!www\\.)(.+)"
29+
regex: "^(https?://)([^w].*|w[^w].*|ww[^w].*|www[^.].*)"
3030
replacement: "${1}www.${2}"
3131
permanent: true
3232

0 commit comments

Comments
 (0)