support restful HTML files (cr: gunrack)