From 33ce243eb9c1d24f8b0f1cd43ffcb028cb8fbaca Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 30 Dec 2015 10:50:54 -0800 Subject: [PATCH] website: redirect bare /dl to /download Change-Id: Ie5f249d478fcb589824c056bf61c7af7c54155ab --- website/camweb.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/camweb.go b/website/camweb.go index 777a77f08..0e09144aa 100644 --- a/website/camweb.go +++ b/website/camweb.go @@ -889,6 +889,10 @@ func gerritRedirect(w http.ResponseWriter, r *http.Request) { } func releaseRedirect(w http.ResponseWriter, r *http.Request) { + if r.URL.Path == "/dl" || r.URL.Path == "/dl/" { + http.Redirect(w, r, "https://camlistore.org/download/", http.StatusFound) + return + } dest := "https://storage.googleapis.com/camlistore-release/" if len(r.URL.Path) > len("/dl/") { dest += r.URL.Path[1:]