title: redirect http non www and remove /index.html in nginx
body: <p>I've tried to redirect with various combination but still no luck</p>
  <p>From</p>
  <pre><code>http://example.com/article/index.html
  http://example.com/category/news/index.html
  </code></pre>
  <p>to</p>
  <pre><code>https://www.example.com/article.html
  https://www.example.com/category/news.html
  </code></pre>