added option to rewrite/not-rewrite html urls