Remove .html extensions; handle serverside.