docs: Clarify from-to-www redirect direction.
This was not clear to me when reading the docs whether the ingress will redirect from non-www to with-www or the reverse. It's also not very clear from just grepping around the codebase. I found the answer by reading from this reddit link: https://www.reddit.com/r/kubernetes/comments/pbl033/k8s_ingress_redirecting_www_to_nonwww_domains/ So, to save time for other people doing the same, which I assumes is a lot of people since it's a common scenario, this little revision in the docs is warranted.
This commit is contained in:
parent
4b5c5efe25
commit
e1a5d5c723
1 changed files with 3 additions and 1 deletions
|
@ -655,7 +655,9 @@ To preserve the trailing slash in the URI with `ssl-redirect`, set `nginx.ingres
|
|||
|
||||
### Redirect from/to www
|
||||
|
||||
In some scenarios is required to redirect from `www.domain.com` to `domain.com` or vice versa.
|
||||
In some scenarios is required to redirect from `www.domain.com` to `domain.com` or vice versa,
|
||||
which way the redirect is performed depends on the configured `host` value in the Ingress object.
|
||||
|
||||
To enable this feature use the annotation `nginx.ingress.kubernetes.io/from-to-www-redirect: "true"`
|
||||
|
||||
!!! attention
|
||||
|
|
Loading…
Reference in a new issue