Rewrite rules flush

Attempt to correct the rewrite rules not being properly flushed on
activation.