add support for RewriteBase config