Permalink
Browse files

Refine regex for '/' path rewrite to /index.html

  • Loading branch information...
1 parent 4766697 commit 2fd2865da910f0dc75e967d8e6a47059c8041b65 @nelstrom committed Mar 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 config.ru
View
@@ -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.