Rewrite all directories
This commit is contained in:
parent
23d8011849
commit
1b6afa2ebc
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ require 'rack'
|
||||||
require 'rack-rewrite'
|
require 'rack-rewrite'
|
||||||
|
|
||||||
use Rack::Rewrite do
|
use Rack::Rewrite do
|
||||||
rewrite '/','/index.html'
|
rewrite %r{(.*)/$},"$1/index.html"
|
||||||
end
|
end
|
||||||
use Rack::Static, :urls => ["/"], :root => "output"
|
use Rack::Static, :urls => ["/"], :root => "output"
|
||||||
app = lambda { |env| [404, { 'Content-Type' => 'text/html' }, 'File Not Found'] }
|
app = lambda { |env| [404, { 'Content-Type' => 'text/html' }, 'File Not Found'] }
|
||||||
|
|
Loading…
Reference in a new issue