mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-09 03:04:57 -04: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
|
// To specified
|
||||||
rule.From = "/"
|
rule.From = "/"
|
||||||
rule.To = args[0]
|
rule.To = args[0]
|
||||||
rule.Code = http.StatusTemporaryRedirect
|
rule.Code = http.StatusMovedPermanently
|
||||||
case 2:
|
case 2:
|
||||||
// To and Code specified
|
// To and Code specified
|
||||||
rule.From = "/"
|
rule.From = "/"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user