Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
add rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyfrank committed Feb 22, 2013
1 parent 968335d commit 8c1b3a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,16 @@ class Application < Rails::Application
# catch 404/500 errors
config.exceptions_app = self.routes

config.middleware.insert_before(Rack::Lock, Rack::Rewrite) do
r301 '/reporters.html', 'http://2012.nastachku.ru/reporters.html'
r301 '/vote-comment.html', 'http://2012.nastachku.ru/'
r301 '/day-zero.html', 'http://2012.nastachku.ru/'
r301 '/participants.html', 'http://2012.nastachku.ru/'
r301 '/sponsors.html', 'http://2012.nastachku.ru/sponsors.html'
r301 '/site-news.html', 'http://2012.nastachku.ru/site-news.html'
r301 '/program.html-ru', 'http://2012.nastachku.ru/'
r301 '/contacts.html', 'http://2012.nastachku.ru/'
r301 '/community.html-ru', 'http://2012.nastachku.ru/community.html-ru'
end
end
end

0 comments on commit 8c1b3a6

Please sign in to comment.