Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Page duplicates #192
Page /content/sub/index.md can be requested as http://example.com/sub and http://example.com/sub/. In fact this is a two different pages with the same content and it is important to avoid page duplicates at least for search engines.
Page duplicates needs to be redirected with 301 status code.
And what about optional trailing slash?
added a commit
Feb 28, 2015
So, should Phile be opinionated about slashes and if yes in which way?
I like what @kicken proposed in #198. Let's make it somewhat semantically sound:
At the same time Phile should resolve potential 'slash'-errors:
With those rules I would
I had a similar problem in a web project, we solved it the way as you described it. It just feels somehow natural and intuitive to do so.