We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd8be4 commit 7805303Copy full SHA for 7805303
config.ru
@@ -7,10 +7,6 @@ require 'yaml'
7
use Rack::CommonLogger
8
9
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
- }
14
15
# bugreport.html (linked to from Ruby source code)
16
r302 %r{^/bugreport\.html$}, "http://bugs.ruby-lang.org/"
0 commit comments