Redirect legacy enterprise path to home #571

This commit is contained in:
Rohan Mitchell
2015-06-26 12:00:13 +10:00
parent 361f7e3432
commit fc4cd517fd

View File

@@ -3,6 +3,7 @@ Openfoodnetwork::Application.routes.draw do
# Redirects from old URLs avoid server errors and helps search engines
get "/enterprises", to: redirect("/")
get "/enterprises/:permalink", to: redirect("/")
get "/products", to: redirect("/")
get "/t/products/:id", to: redirect("/")