mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-21 15:47:24 +08:00
With just a destination, default redir code is now 301
This commit is contained in:
parent
cd53ec9bcc
commit
7d46108c12
@ -55,7 +55,7 @@ func parse(c middleware.Controller) ([]Rule, error) {
|
||||
// To specified
|
||||
rule.From = "/"
|
||||
rule.To = args[0]
|
||||
rule.Code = http.StatusTemporaryRedirect
|
||||
rule.Code = http.StatusMovedPermanently
|
||||
case 2:
|
||||
// To and Code specified
|
||||
rule.From = "/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user