I am new to nanoc and I just setup by blog.
All my posts are under /blog/post/Month/Post_name.html
, but every time I visit /post/
, it shows me the Apache file list view.
Rather I want /blog/post/*
to redirect to /blog/
(which contains a list of all blog posts), but when accessed the /blog/post/Month/Post_name.html
, it should show right.
So, how do I do it?
This is a question about Apache, not so much about nanoc.
In your configuration file, make sure that the Options
does not include Indexes
. This will turn off directory listings.
For redirection, you can use mod_alias
. Take a look at the documentation for redirect.