Closed jeroenpelgrims closed 8 years ago
1: http://myblog.com/my-post-slug => works 2: http://myblog.com/my-post-slug/ => 404
Either the 2nd example url should redirect to the 1st example url or vice versa.
This line doesn't seem to catch all cases: try_files $uri $uri.html $uri/ =404; (conf/nginx.conf.erb)
try_files $uri $uri.html $uri/ =404;
In the 2nd case you'd try checking for the following files or folders: my-post-slug/ my-post-slug/.html my-post-slug//
All posts generated by jekyll are .html files.
I fixed this by adding a line which redirects urls with a trailing slash to the same url without a trailing slash in PR #7.
1: http://myblog.com/my-post-slug => works
2: http://myblog.com/my-post-slug/ => 404
Either the 2nd example url should redirect to the 1st example url or vice versa.
This line doesn't seem to catch all cases:
try_files $uri $uri.html $uri/ =404;
(conf/nginx.conf.erb)In the 2nd case you'd try checking for the following files or folders: my-post-slug/ my-post-slug/.html my-post-slug//
All posts generated by jekyll are.html files.