Fix sample html download

Clicking "HTML file" link results in a 404 page instead of a forced download. Trying this snippet from http://24ways.org/2013/url-rewriting-for-the-fearful/