Skip to content

Commit

Permalink
Redirect to SassMeister.com. Fixes #25.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hampton Catlin committed Oct 15, 2013
1 parent 7d877d3 commit 301f2c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ else
r301 '/documentation', '/documentation/'
r301 '/documentation/_index.html', '/documentation/'

moved_permanently '/try.html', 'http://www.sassmeister.com'

rewrite(%r{^(.*)/([^/.]+)$}, lambda do |match, rack_env|
path = "#{File.dirname(__FILE__)}/build#{match[0]}"
next "#{match[1]}/#{match[2]}/index.html" if Dir.exists?(path)
Expand Down

0 comments on commit 301f2c9

Please sign in to comment.