Skip to content

Commit 7805303

Browse files
committed
Remove rewrite rules to dir with trailing slash
These redirections are handled by Lanyon.
1 parent 9bd8be4 commit 7805303

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

config.ru

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ require 'yaml'
77
use Rack::CommonLogger
88

99
use Rack::Rewrite do
10-
# enforce trailing slash (/foo -> /foo/) when index.html exists
11-
r302 %r{.*}, "$&/", if: ->(rack_env) {
12-
rack_env["PATH_INFO"].match(%r{/$}).nil? && File.exist?("_site#{rack_env["PATH_INFO"]}/index.html")
13-
}
1410

1511
# bugreport.html (linked to from Ruby source code)
1612
r302 %r{^/bugreport\.html$}, "http://bugs.ruby-lang.org/"

0 commit comments

Comments
 (0)