From cd7dca5f0227c51791bab22d51a7a4c34e6eeac7 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Sun, 26 Oct 2014 22:21:45 -0400 Subject: [PATCH] Redirect old WebUI downloads page to new one There are currently a number of sites on the Internet that link to the old downloads_web_ui.html page, including some popular blog posts. Since the WebUI has been moved onto the Consul page itself, these links are now broken. This commit adds a 301 (to preserve SEO) redirect from the old page to the new one. --- website/config.ru | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/config.ru b/website/config.ru index fd8f01d6c5..9311cefc40 100644 --- a/website/config.ru +++ b/website/config.ru @@ -4,6 +4,11 @@ require "rack/contrib/response_headers" require "rack/contrib/static_cache" require "rack/contrib/try_static" +require "rake/rewrite" +use Rack::Rewrite do + r301 "/downloads_web_ui.html", "/downloads.html" +end + # Properly compress the output if the client can handle it. use Rack::Deflater