Permalink
Browse files

redirect from explainruby.heroku.com to explainruby.net

  • Loading branch information...
1 parent 3acc50e commit a9e8f2ce057ad75e51944cd7e9cec105261dfaa2 @mislav committed Sep 18, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 app.rb
View
6 app.rb
@@ -51,7 +51,11 @@ def sass_with_caching(name)
end
get '/' do
- mustache :home
+ if request.host == 'explainruby.heroku.com'
+ redirect 'http://explainruby.net'
+ else
+ mustache :home
+ end
end
get '/url/*' do

0 comments on commit a9e8f2c

Please sign in to comment.