Move rewritebase to before maintenance redirect