rewritebase