Fix for double redirect
This commit is contained in:
parent
99b7827f19
commit
977593745e
1 changed files with 9 additions and 3 deletions
|
@ -112,6 +112,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
# redirect URL without subdomain to www
|
||||
{$DOMAIN} {
|
||||
redir https://www.{$DOMAIN}{uri} permanent
|
||||
}
|
||||
|
||||
# shortcut to prevent double redirect (http --> https AND without subdomain to www)
|
||||
http://{$DOMAIN} {
|
||||
redir https://www.{$DOMAIN}{uri} permanent
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue