make web app rewrites optional