Rewriting for more client-side activity