Fix HTML sample file download error

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