Skip to content

Commit

Permalink
Refine regex for '/' path rewrite to /index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Mar 25, 2011
1 parent 4766697 commit 2fd2865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.ru
Expand Up @@ -3,6 +3,6 @@ require 'rack/rewrite'

use Rack::Static, :urls => ['/'], :root => "public"
use Rack::Rewrite do
rewrite '/', '/index.html'
rewrite '/$', '/index.html'
end
run Rack::Directory.new('public')

0 comments on commit 2fd2865

Please sign in to comment.