Replace some legacy routes with redirects

This commit is contained in:
Tom Hughes 2013-12-03 19:08:21 +00:00
parent ba4a3e3ce9
commit e418075e26
4 changed files with 17 additions and 15 deletions

View file

@ -162,9 +162,9 @@ OpenStreetMap::Application.routes.draw do
match '/user/forgot-password' => 'user#lost_password', :via => [:get, :post]
match '/user/suspended' => 'user#suspended', :via => :get
match '/index.html' => 'site#index', :via => :get
match '/create-account.html' => 'user#new', :via => :get
match '/forgot-password.html' => 'user#lost_password', :via => :get
get '/index.html', :to => redirect(:path => "/")
get '/create-account.html', :to => redirect(:path => "/user/new")
get '/forgot-password.html', :to => redirect(:path => "/user/forgot-password")
# permalink
match '/go/:code' => 'site#permalink', :via => :get, :code => /[a-zA-Z0-9_@~]+[=-]*/