Rewrite urls only if an html file exists.