title: wget to clone a website, with links to directory not index.html
body: <p>I would like to clone a wordpress blog with wget so that I can include it as static content in a web app I am writing.</p>
  
  <p>At the moment I am using the following to clone the site:</p>
  
  <pre><code>wget -rk http://sitename.com
  </code></pre>
  
  <p>This is working well, but the links in the generated html point to the index.html file. I would like those links to point to the directory that contains the file.</p>
  
  <p>e.g. for the page <a href="http://sitename.com/blog-post-about-cats/" rel="nofollow">http://sitename.com/blog-post-about-cats/</a> 
  wget is generating a directory "blog-post-about-cats" and putting a index.html file in there. Links to that blog post are written as "../blog-post-about-cats/index.html" where I want them to be "../blog-post-about-cats/".</p>
  
  <p>I guess I want it because I think the index.html in the url looks a bit ugly and these pages are all about presentation.</p>
  
  <p>Any ideas? Is this possible with wget or perhaps a different command line tool?</p>
  
  <p>Thanks.</p>