So you want to have pretty URLs with no trailing slash or .html
like:
http://mysite.com/blog/my-new-kitten
not like:
http://mysite.com/blog/my-new-kitten/
or
http://mysite.com/blog/my-new-kitten.html
In your Middleman config.rb
file:
activate :directory_indexes
set :trailing_slash, false
In your Nginx config file:
server {
...
location / {
try_files $uri $uri/index.html =404;
rewrite ^(/.+)/$ $1 permanent;
}
...
}
What about Apache?