Permalink
Browse files

Fix rewrite config to add slashes

  • Loading branch information...
nottrobin committed May 31, 2013
1 parent b69022b commit af062d575f0b15e54027a2c3df0697162bb312b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 config.ru
@@ -9,7 +9,7 @@ use Rack::Deflater
# ---
use Rack::Rewrite do
# Remove HTML extensions from posts
r301 %r{^/(\d{4}/\d{2}/\d{2}/.*).html$}, '/$1/'
r301 %r{^/(\d{4}/\d{2}/\d{2}/[^/.]+)(.html)?$}, '/$1/'

# Make sure index.html => /
r301 %r{^/index(.html)?$}, '/'

0 comments on commit af062d5

Please sign in to comment.