Hi,
It is due nature of static websites – even if you are using pretty URLs, Publii will generate directory where index.html exists – so both URLs will work:
/post-slug/
/post-slug/index.html
Unfortunately the only way to handle this is server configuration which will redirect index.html to the directory path.
.htaccess won’t work on Netlify, in fact it seems to be problematic to achieve on Netlify, maybe please try such config:
[[redirects]]
from = "/:slug/index.html"
to = "/:slug/"
status = 200
force = false
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!