converted rewrite engine for Azure IIS