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.
This commit is contained in:
Seth Vargo 2014-10-26 22:21:45 -04:00
parent c1dfa55859
commit cd7dca5f02
1 changed files with 5 additions and 0 deletions

View File

@ -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