# Server redirects configuration (www => non-www, vice versa), its applicable
# to all domains/subdomains configured in `routes.conf`
#
# Note: Its applicable to hostname only not protocol. For `http => https`
# refer to config section `server.ssl.redirect_http`.
redirect {
# Enabling redirects.
# Default value is `false`.
enable = true
# Possible values are
# - `www` - aahframework.org => www.aahframework.org
# - `non-www` - www.aahframework.org => aahframework.org
# Default value is `non-www`.
#to = "www"
# Redirect code.
# Default value is 301 MovedPermanently RFC 7231.
#code = 301
}
Goal is to add OOTB support for server redirects.
Configuration goes under section
server { ... }