remove rewritebase