Rewrite all directories

This commit is contained in:
Yann Esposito (Yogsototh) 2010-08-23 14:52:52 +02:00
parent 23d8011849
commit 1b6afa2ebc

View file

@ -3,7 +3,7 @@ require 'rack'
require 'rack-rewrite'
use Rack::Rewrite do
rewrite '/','/index.html'
rewrite %r{(.*)/$},"$1/index.html"
end
use Rack::Static, :urls => ["/"], :root => "output"
app = lambda { |env| [404, { 'Content-Type' => 'text/html' }, 'File Not Found'] }